VuFind API Documentation

ReCaptchaFactory
in package
implements FactoryInterface Uses SecretTrait

ReCaptcha factory.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Interfaces, Classes, Traits and Enums

FactoryInterface

Table of Contents

__invoke()  : object
Create an object
getSecretFromConfig()  : string|null
Load a secret value from the specified configuration and key.

Methods

__invoke()

Create an object

public __invoke(ContainerInterface $container, string $requestedName[, null|array<string|int, mixed> $options = null ]) : object
Parameters
$container : ContainerInterface

Service manager

$requestedName : string

Service being created

$options : null|array<string|int, mixed> = null

Extra options (optional)

Tags
throws
ServiceNotFoundException

if unable to resolve the service.

throws
ServiceNotCreatedException

if an exception is raised when creating a service.

throws
ContainerExceptionInterface|Throwable

if any other error occurs

Return values
object

getSecretFromConfig()

Load a secret value from the specified configuration and key.

protected getSecretFromConfig(Config|array<string|int, mixed>|null $config, string $key) : string|null

Will look for a _file-suffixed version of the key first, and load the data from a separate file if configured to do so.

Parameters
$config : Config|array<string|int, mixed>|null

The config to read from

$key : string

The key to retrieve

Return values
string|null

Search results