W3cubDocs

/Symfony 4.1

RuntimeInstantiator

class RuntimeInstantiator implements InstantiatorInterface

Runtime lazy loading proxy generator.

Methods

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

Instantiates a proxy object.

Details

__construct()

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