Lazy proxy instantiator, capable of instantiating a proxy given a container, the service definitions and a callback that produces the real service instance.
@author Marco Pivetta <ocramius@gmail.com>
Expanded class hierarchy of InstantiatorInterface
All classes that implement InstantiatorInterface
interface InstantiatorInterface {
/**
* Instantiates a proxy object.
*
* @param ContainerInterface $container the container from which the service is being requested
* @param Definition $definition the definition of the requested service
* @param string $id identifier of the requested service
* @param callable $realInstantiator zero-argument callback that is capable of producing the real
* service instance
*
* @return object
*/
public function instantiateProxy(ContainerInterface $container, Definition $definition, $id, $realInstantiator);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InstantiatorInterface:: |
public | function | Instantiates a proxy object. | 1 |