You are here

protected function ProjectServiceContainer::getFooBarService in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ProjectServiceContainer::getFooBarService()
  2. 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9_compiled.php \ProjectServiceContainer::getFooBarService()
  3. 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9.php \ProjectServiceContainer::getFooBarService()
Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9_compiled.php \ProjectServiceContainer::getFooBarService()
  2. 8 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();
}