protected function ProjectServiceContainer::getTestService in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/php/services12.php \ProjectServiceContainer::getTestService()
- 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/php/services10.php \ProjectServiceContainer::getTestService()
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services12.php \ProjectServiceContainer::getTestService()
- 8 vendor/symfony/dependency-injection/Tests/Fixtures/php/services10.php \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
- vendor/
symfony/ dependency-injection/ Tests/ Fixtures/ php/ services10.php, line 57
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',
));
}