Since: 5.0.0

final class CaptchaRegistry implements DispatcherAwareInterface

Captcha Registry class

Traits

DispatcherAwareTrait

Methods

array
getAll()

Return list of all registered elements

bool
has(string $name)

Check whether the element exists in the registry.

get(string $name)

Return element by name.

add(CaptchaProviderInterface $instance)

Register element in registry, add new or override existing.

initRegistry()

Trigger event to allow register the element through plugins.

Details

array getAll()

Since: 5.0.0

Return list of all registered elements

Return Value

array

bool has(string $name)

Since: 5.0.0

Check whether the element exists in the registry.

Parameters

string $name

Element name

Return Value

bool

CaptchaProviderInterface get(string $name)

Since: 5.0.0

Return element by name.

Parameters

string $name

Element name

Return Value

CaptchaProviderInterface

Exceptions

CaptchaNotFoundException

CaptchaRegistry add(CaptchaProviderInterface $instance)

Since: 5.0.0

Register element in registry, add new or override existing.

Parameters

CaptchaProviderInterface $instance

Return Value

CaptchaRegistry

CaptchaRegistry initRegistry()

Since: 5.0.0

Trigger event to allow register the element through plugins.

Return Value

CaptchaRegistry