You are here

protected function ProjectServiceContainer::getScopedFooService in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ProjectServiceContainer::getScopedFooService()

File

vendor/symfony/dependency-injection/Tests/ContainerTest.php, line 654

Class

ProjectServiceContainer

Namespace

Symfony\Component\DependencyInjection\Tests

Code

protected function getScopedFooService() {
  if (!$this
    ->isScopeActive('foo')) {
    throw new \RuntimeException('invalid call');
  }
  return $this->services['scoped_foo'] = $this->scopedServices['foo']['scoped_foo'] = new \stdClass();
}