VuFind API Documentation

ApiControllerFactory
in package
implements FactoryInterface

Factory for ApiController.

Tags
category

VuFind

author

Ere Maijala ere.maijala@helsinki.fi

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
getApiControllersToRegister()  : array<string|int, mixed>
Get the API controllers to register with ApiController

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

getApiControllersToRegister()

Get the API controllers to register with ApiController

protected getApiControllersToRegister(ContainerInterface $container) : array<string|int, mixed>
Parameters
$container : ContainerInterface

Service manager

Return values
array<string|int, mixed>

Search results