protected function ProjectServiceContainer::getScopedFooService

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/ContainerTest.php, line 504

Class

ProjectServiceContainer

Namespace

Symfony\Component\DependencyInjection\Tests

Code

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