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

 Methods

__construct()

__construct(\ProxyManager\Factory\LazyLoadingValueHolderFactory $proxyFactory, array $servicesMap) 

Parameters

$proxyFactory

\ProxyManager\Factory\LazyLoadingValueHolderFactory

$servicesMap

string[]

a map of service names to class names of their respective classes

A factory that creates delegates of a given service

createDelegatorWithName(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, string $name, string $requestedName, \Zend\ServiceManager\callable $callback) : object | \ProxyManager\Proxy\LazyLoadingInterface | \ProxyManager\Proxy\ValueHolderInterface

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

\Zend\ServiceManager\callable

the callback that is responsible for creating the service

Returns

object\ProxyManager\Proxy\LazyLoadingInterface\ProxyManager\Proxy\ValueHolderInterface

 Properties

 

$proxyFactory

$proxyFactory : \ProxyManager\Factory\LazyLoadingValueHolderFactory

 

<p>map of service names to class names</p>

$servicesMap : string[]