class RealServiceInstantiator in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/RealServiceInstantiator.php \Symfony\Component\DependencyInjection\LazyProxy\Instantiator\RealServiceInstantiator
Noop proxy instantiator - simply produces the real service instead of a proxy instance.
@author Marco Pivetta <ocramius@gmail.com>
Hierarchy
- class \Symfony\Component\DependencyInjection\LazyProxy\Instantiator\RealServiceInstantiator implements InstantiatorInterface
Expanded class hierarchy of RealServiceInstantiator
2 files declare their use of RealServiceInstantiator
- ContainerBuilder.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ ContainerBuilder.php - RealServiceInstantiatorTest.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Tests/ LazyProxy/ Instantiator/ RealServiceInstantiatorTest.php
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ LazyProxy/ Instantiator/ RealServiceInstantiator.php, line 24
Namespace
Symfony\Component\DependencyInjection\LazyProxy\InstantiatorView source
class RealServiceInstantiator implements InstantiatorInterface {
/**
* {@inheritdoc}
*/
public function instantiateProxy(ContainerInterface $container, Definition $definition, $id, $realInstantiator) {
return call_user_func($realInstantiator);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RealServiceInstantiator:: |
public | function |
Instantiates a proxy object. Overrides InstantiatorInterface:: |