You are here

protected function ProjectServiceContainer::getScopedSynchronizedFooService in Zircon Profile 8.0

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

File

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

Class

ProjectServiceContainer

Namespace

Symfony\Component\DependencyInjection\Tests

Code

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