Zend Framework  3.0
Public Member Functions | List of all members
DelegatorFactoryInterface Interface Reference

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.
 

Detailed Description

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.

Deprecated:
Use Zend instead.

Member Function Documentation

createDelegatorWithName ( ServiceLocatorInterface  $serviceLocator,
  $name,
  $requestedName,
  $callback 
)

A factory that creates delegates of a given service.

Parameters
ServiceLocatorInterface$serviceLocatorthe service locator which requested the service
string$namethe normalized service name
string$requestedNamethe requested service name
callable$callbackthe callback that is responsible for creating the service
Returns
mixed

Implemented in HttpRouterDelegatorFactory, ConsoleRouterDelegatorFactory, ConsoleApplicationDelegatorFactory, ConsoleViewHelperManagerDelegatorFactory, ConsoleRequestDelegatorFactory, ConsoleResponseDelegatorFactory, ConsoleResponseSenderDelegatorFactory, ViewManagerDelegatorFactory, ControllerManagerDelegatorFactory, and ViewHelperManagerDelegatorFactory.