Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\DependencyInjection\LazyProxy\Instantiator; Chris@0: Chris@0: use Symfony\Component\DependencyInjection\ContainerInterface; Chris@0: use Symfony\Component\DependencyInjection\Definition; Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@18: * Noop proxy instantiator - produces the real service instead of a proxy instance. Chris@0: * Chris@0: * @author Marco Pivetta Chris@0: */ Chris@0: class RealServiceInstantiator implements InstantiatorInterface Chris@0: { Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function instantiateProxy(ContainerInterface $container, Definition $definition, $id, $realInstantiator) Chris@0: { Chris@17: return \call_user_func($realInstantiator); Chris@0: } Chris@0: }