CaptchaRegistry

Implements DispatcherAwareInterface

Captcha Registry class

final
since

5.0.0

package

Joomla CMS

Methods

add

Register element in registry, add new or override existing.

add(\Joomla\CMS\Captcha\CaptchaProviderInterface instance) : 
since

5.0.0

Arguments

instance

CaptchaProviderInterface

Response

static

get

Return element by name.

get( name) : \Joomla\CMS\Captcha\CaptchaProviderInterface
throws

CaptchaNotFoundException

since

5.0.0

Arguments

name

stringElement name

Response

CaptchaProviderInterface

getAll

Return list of all registered elements

getAll() : \Joomla\CMS\Captcha\CaptchaProviderInterface||string|int
since

5.0.0

Response

array<string|int, CaptchaProviderInterface>

has

Check whether the element exists in the registry.

has( name) : 
since

5.0.0

Arguments

name

stringElement name

Response

bool

initRegistry

Trigger event to allow register the element through plugins.

initRegistry() : 
since

5.0.0

Response

static

Properties

registry

List of registered elements

since

5.0.0

Type(s)

array<string|int, CaptchaProviderInterface>

initialised

Internal flag of initialisation

since

5.0.0

Type(s)

bool