protected function ProjectServiceContainer::getBazService

Gets the 'baz' service.

This service is shared. This method always returns the same instance of the service.

Return value

Baz A Baz instance.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php, line 79

Class

ProjectServiceContainer
ProjectServiceContainer

Code

protected function getBazService() {
  $this->services['baz'] = $instance = new \Baz();
  $instance
    ->setFoo($this
    ->get('foo_with_inline'));
  return $instance;
}