InstantiatorInterface

interface InstantiatorInterface

Lazy proxy instantiator, capable of instantiating a proxy given a container, the service definitions and a callback that produces the real service instance.

Methods

object instantiateProxy(ContainerInterface $container, Definition $definition, string $id, callable $realInstantiator)

Instantiates a proxy object.

Details

object instantiateProxy(ContainerInterface $container, Definition $definition, string $id, callable $realInstantiator)

Instantiates a proxy object.

Parameters

ContainerInterface $container the container from which the service is being requested
Definition $definition the definition of the requested service
string $id identifier of the requested service
callable $realInstantiator zero-argument callback that is capable of producing the real service instance

Return Value

object
doc_Symfony
2016-10-28 06:21:25
Comments
Leave a Comment

Please login to continue.