You are here

public function ProjectServiceContainer::__construct in Service Container 7.2

Same name in this branch
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ProjectServiceContainer::__construct()
  2. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services8.php \ProjectServiceContainer::__construct()
  3. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php \ProjectServiceContainer::__construct()
  4. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services1.php \ProjectServiceContainer::__construct()
  5. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services20.php \ProjectServiceContainer::__construct()
  6. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php \ProjectServiceContainer::__construct()
  7. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services12.php \ProjectServiceContainer::__construct()
  8. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services19.php \ProjectServiceContainer::__construct()
  9. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php \ProjectServiceContainer::__construct()
Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services8.php \ProjectServiceContainer::__construct()
  2. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php \ProjectServiceContainer::__construct()
  3. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services1.php \ProjectServiceContainer::__construct()
  4. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services20.php \ProjectServiceContainer::__construct()
  5. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php \ProjectServiceContainer::__construct()
  6. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services12.php \ProjectServiceContainer::__construct()
  7. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services19.php \ProjectServiceContainer::__construct()
  8. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php \ProjectServiceContainer::__construct()

Constructor.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services12.php, line 25

Class

ProjectServiceContainer
ProjectServiceContainer.

Code

public function __construct() {
  $dir = __DIR__;
  for ($i = 1; $i <= 5; ++$i) {
    $this->targetDirs[$i] = $dir = dirname($dir);
  }
  $this->parameters = $this
    ->getDefaultParameters();
  $this->services = $this->scopedServices = $this->scopeStacks = array();
  $this->scopes = array();
  $this->scopeChildren = array();
  $this->methodMap = array(
    'test' => 'getTestService',
  );
  $this->aliases = array();
}