class 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 drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php
RealServiceInstantiatorTest.php in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/LazyProxy/Instantiator/RealServiceInstantiatorTest.php

File

drupal/core/vendor/symfony/dependency-injection/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