RuntimeInstantiator
in package
implements
InstantiatorInterface
Runtime lazy loading proxy generator.
Tags
Interfaces, Classes, Traits and Enums
- InstantiatorInterface
- Lazy proxy instantiator, capable of instantiating a proxy given a container, the service definitions and a callback that produces the real service instance.
Table of Contents
- $factory : mixed
- __construct() : mixed
- instantiateProxy() : object
- Instantiates a proxy object.
Properties
$factory
private
mixed
$factory
Methods
__construct()
public
__construct() : mixed
Return values
mixed —instantiateProxy()
Instantiates a proxy object.
public
instantiateProxy(ContainerInterface $container, Definition $definition, mixed $id, mixed $realInstantiator) : object
Parameters
- $container : ContainerInterface
- $definition : Definition
- $id : mixed
-
Identifier of the requested service
- $realInstantiator : mixed
-
Zero-argument callback that is capable of producing the real service instance