FileAccess Orion

LazyServiceFactory
in package
implements DelegatorFactoryInterface

Delegator factory responsible of instantiating lazy loading value holder proxies of given services at runtime

Tags
link
https://github.com/Ocramius/ProxyManager/blob/master/docs/lazy-loading-value-holder.md

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

$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
Return values
VirtualProxyInterface

Search results