Delegator factory responsible of instantiating lazy loading value holder proxies of given services at runtime
link | https://github.com/Ocramius/ProxyManager/blob/master/docs/lazy-loading-value-holder.md |
---|
__construct(\ProxyManager\Factory\LazyLoadingValueHolderFactory $proxyFactory, array $servicesMap)
\ProxyManager\Factory\LazyLoadingValueHolderFactory
string[]
a map of service names to class names of their respective classes
createDelegatorWithName(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, string $name, string $requestedName, \Zend\ServiceManager\callable $callback) : object | \ProxyManager\Proxy\LazyLoadingInterface | \ProxyManager\Proxy\ValueHolderInterface
\Zend\ServiceManager\ServiceLocatorInterface
the service locator which requested the service
string
the normalized service name
string
the requested service name
\Zend\ServiceManager\callable
the callback that is responsible for creating the service
object
\ProxyManager\Proxy\LazyLoadingInterface
\ProxyManager\Proxy\ValueHolderInterface
$proxyFactory : \ProxyManager\Factory\LazyLoadingValueHolderFactory
$servicesMap : string[]