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