You are here

class RealServiceInstantiator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/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 vendor/symfony/dependency-injection/ContainerBuilder.php
RealServiceInstantiatorTest.php in vendor/symfony/dependency-injection/Tests/LazyProxy/Instantiator/RealServiceInstantiatorTest.php

File

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