protected function ProjectServiceContainer::getScopedService in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ProjectServiceContainer::getScopedService()
File
- vendor/
symfony/ dependency-injection/ Tests/ ContainerTest.php, line 645
Class
Namespace
Symfony\Component\DependencyInjection\TestsCode
protected function getScopedService() {
if (!$this
->isScopeActive('foo')) {
throw new \RuntimeException('Invalid call');
}
return $this->services['scoped'] = $this->scopedServices['foo']['scoped'] = new \stdClass();
}