function InstantiatorInterface::instantiateProxy
Instantiates a proxy object.
Parameters
string $id Identifier of the requested service:
callable(object=) $realInstantiator A callback that is capable of producing the real service instance:
2 methods override InstantiatorInterface::instantiateProxy()
- LazyServiceInstantiator::instantiateProxy in vendor/
symfony/ dependency-injection/ LazyProxy/ Instantiator/ LazyServiceInstantiator.php - Instantiates a proxy object.
- RealServiceInstantiator::instantiateProxy in vendor/
symfony/ dependency-injection/ LazyProxy/ Instantiator/ RealServiceInstantiator.php - Instantiates a proxy object.
File
-
vendor/
symfony/ dependency-injection/ LazyProxy/ Instantiator/ InstantiatorInterface.php, line 31
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\InstantiatorCode
public function instantiateProxy(ContainerInterface $container, Definition $definition, string $id, callable $realInstantiator) : object;