Zend Framework
3.0
|
Backwards-compatibility shim for DelegatorFactoryInterface. More...
Public Member Functions | |
createDelegatorWithName (ServiceLocatorInterface $serviceLocator, $name, $requestedName, $callback) | |
A factory that creates delegates of a given service. | |
Public Member Functions inherited from DelegatorFactoryInterface | |
__invoke (ContainerInterface $container, $name, callable $callback, array $options=null) | |
A factory that creates delegates of a given service. | |
Backwards-compatibility shim for DelegatorFactoryInterface.
Implementations should update to implement only Zend.
If upgrading from v2, take the following steps:
Once you have tested your code, you can then update your class to only implement Zend, and remove the `createDelegatorWithName()` method.
createDelegatorWithName | ( | ServiceLocatorInterface | $serviceLocator, |
$name, | |||
$requestedName, | |||
$callback | |||
) |
A factory that creates delegates of a given service.
ServiceLocatorInterface | $serviceLocator | the service locator which requested the service |
string | $name | the normalized service name |
string | $requestedName | the requested service name |
callable | $callback | the callback that is responsible for creating the service |
Implemented in HttpRouterDelegatorFactory, ConsoleRouterDelegatorFactory, ConsoleApplicationDelegatorFactory, ConsoleViewHelperManagerDelegatorFactory, ConsoleRequestDelegatorFactory, ConsoleResponseDelegatorFactory, ConsoleResponseSenderDelegatorFactory, ViewManagerDelegatorFactory, ControllerManagerDelegatorFactory, and ViewHelperManagerDelegatorFactory.