protected function ProjectServiceContainer::getFooBarService in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ProjectServiceContainer::getFooBarService()
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9_compiled.php \ProjectServiceContainer::getFooBarService()
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9.php \ProjectServiceContainer::getFooBarService()
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9_compiled.php \ProjectServiceContainer::getFooBarService()
- 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9.php \ProjectServiceContainer::getFooBarService()
Gets the 'foo_bar' service.
Return value
object A %foo_class% instance.
File
- vendor/
symfony/ dependency-injection/ Tests/ Fixtures/ php/ services9.php, line 205
Class
- ProjectServiceContainer
- ProjectServiceContainer.
Code
protected function getFooBarService() {
$class = $this
->getParameter('foo_class');
return new $class();
}