protected function ProjectServiceContainer::getTestService

Gets the 'test' service.

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

Return value

stdClass A stdClass instance.

File

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

Class

ProjectServiceContainer
ProjectServiceContainer

Code

protected function getTestService() {
  return $this->services['test'] = new \stdClass(array(
    'only dot' => '.',
    'concatenation as value' => '.\'\'.',
    'concatenation from the start value' => '\'\'.',
    '.' => 'dot as a key',
    '.\'\'.' => 'concatenation as a key',
    '\'\'.' => 'concatenation from the start key',
    'optimize concatenation' => 'string1-string2',
    'optimize concatenation with empty string' => 'string1string2',
    'optimize concatenation from the start' => 'start',
    'optimize concatenation at the end' => 'end',
  ));
}