Interface for factories that can create delegates for services

package Default

 Methods

A factory that creates delegates of a given service

createDelegatorWithName(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, string $name, string $requestedName, callable $callback) : mixed

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

the service locator which requested the service

$name

string

the normalized service name

$requestedName

string

the requested service name

$callback

callable

the callback that is responsible for creating the service

Returns

mixed