FileAccess Orion

DelegatorFactoryInterface

Delegator factory interface.

Defines the capabilities required by a delegator factory. Delegator factories are used to either decorate a service instance, or to allow decorating the instantiation of a service instance (for instance, to provide optional dependencies via setters, etc.).

Table of Contents

__invoke()  : object
A factory that creates delegates of a given service

Methods

__invoke()

A factory that creates delegates of a given service

public __invoke(ContainerInterface $container, string $name, callable $callback[, null|array<string|int, mixed> $options = null ]) : object
Parameters
$container : ContainerInterface
$name : string
$callback : callable
$options : null|array<string|int, mixed> = null
Tags
throws
ServiceNotFoundException

if unable to resolve the service.

throws
ServiceNotCreatedException

if an exception is raised when creating a service.

throws
ContainerException

if any other error occurs

Return values
object

Search results