public function RealServiceInstantiator::instantiateProxy in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/RealServiceInstantiator.php \Symfony\Component\DependencyInjection\LazyProxy\Instantiator\RealServiceInstantiator::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
Overrides InstantiatorInterface::instantiateProxy
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ LazyProxy/ Instantiator/ RealServiceInstantiator.php, line 29
Class
- RealServiceInstantiator
- Noop proxy instantiator - simply produces the real service instead of a proxy instance.
Namespace
Symfony\Component\DependencyInjection\LazyProxy\InstantiatorCode
public function instantiateProxy(ContainerInterface $container, Definition $definition, $id, $realInstantiator) {
return call_user_func($realInstantiator);
}