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
package Default

 Methods

__construct()

__construct(\ProxyManager\Factory\LazyLoadingValueHolderFactory $proxyFactory, array<mixed,string> $servicesMap) 

Parameters

$proxyFactory

\ProxyManager\Factory\LazyLoadingValueHolderFactory

$servicesMap

array<mixed,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, callable $callback) : object | \ProxyManager\Proxy\LazyLoadingInterface | \ProxyManager\Proxy\ValueHolderInterface
inherited_from \Zend\ServiceManager\DelegatorFactoryInterface::createDelegatorWithName()

Parameters

$serviceLocator

$name

$requestedName

$callback

Returns

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

 Properties

 

$proxyFactory

$proxyFactory : \ProxyManager\Factory\LazyLoadingValueHolderFactory

Default

 

map of service names to class names

$servicesMap : array<mixed,string>

Default