You are here

class RealServiceInstantiator in Service Container 7.2

Same name and namespace in other branches
  1. 7 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

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\Instantiator
View source
class RealServiceInstantiator implements InstantiatorInterface {

  /**
   * {@inheritdoc}
   */
  public function instantiateProxy(ContainerInterface $container, Definition $definition, $id, $realInstantiator) {
    return call_user_func($realInstantiator);
  }

}

Members