You are here

protected function ProjectServiceContainer::getScopedService 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::getScopedService()

File

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

Class

ProjectServiceContainer

Namespace

Symfony\Component\DependencyInjection\Tests

Code

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