DelegatorFactoryInterface
in
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