protected function ProjectServiceContainer::getScopedService

File

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

Class

ProjectServiceContainer

Namespace

Symfony\Component\DependencyInjection\Tests

Code

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