phpBB API Documentation
Class

phpbb\captcha\factory

class factory

Methods

__construct(ContainerInterface $container, service_collection $plugins)

Constructor

object get_instance($name $name)

Return a new instance of a given plugin

garbage_collect(string $name)

Call the garbage collector

get_captcha_types()

Return a list of all registered CAPTCHA plugins

Details

at line 34
public __construct(ContainerInterface $container, service_collection $plugins)

Constructor

Parameters

ContainerInterface $container
service_collection $plugins

at line 46
public object get_instance($name $name)

Return a new instance of a given plugin

Parameters

$name $name

Return Value

object

at line 56
public garbage_collect(string $name)

Call the garbage collector

Parameters

string $name The name to the captcha service.

at line 67
public get_captcha_types()

Return a list of all registered CAPTCHA plugins