You are here

public function InstantiatorInterface::instantiateProxy in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/InstantiatorInterface.php \Symfony\Component\DependencyInjection\LazyProxy\Instantiator\InstantiatorInterface::instantiateProxy()

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

1 method overrides InstantiatorInterface::instantiateProxy()
RealServiceInstantiator::instantiateProxy in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/RealServiceInstantiator.php
Instantiates a proxy object.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/InstantiatorInterface.php, line 36

Class

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

Namespace

Symfony\Component\DependencyInjection\LazyProxy\Instantiator

Code

public function instantiateProxy(ContainerInterface $container, Definition $definition, $id, $realInstantiator);