HumHub Documentation (unofficial)

LazyServiceFactory
in package
implements DelegatorFactoryInterface

FinalYes

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

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

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

        
On this page

Search results