LazyServiceFactory
in package
implements
DelegatorFactoryInterface
FinalYes
Delegator factory responsible of instantiating lazy loading value holder proxies of given services at runtime
Tags
Table of Contents
Interfaces
- DelegatorFactoryInterface
- Delegator factory interface.
Properties
- $proxyFactory : LazyLoadingValueHolderFactory
- $servicesMap : array<string|int, mixed>
Methods
- __construct() : mixed
- __invoke() : VirtualProxyInterface
- A factory that creates delegates of a given service
Properties
$proxyFactory
private
LazyLoadingValueHolderFactory
$proxyFactory
$servicesMap
private
array<string|int, mixed>
$servicesMap
Methods
__construct()
public
__construct(LazyLoadingValueHolderFactory $proxyFactory, array<string, class-string> $servicesMap) : mixed
Parameters
- $proxyFactory : LazyLoadingValueHolderFactory
- $servicesMap : array<string, class-string>
-
A map of service names to class names of their respective classes
__invoke()
A factory that creates delegates of a given service
public
__invoke(ContainerInterface $container, string $name, callable $callback[, array<string|int, mixed>|null $options = null ]) : VirtualProxyInterface
Parameters
- $container : ContainerInterface
- $name : string
- $callback : callable
- $options : array<string|int, mixed>|null = null