You are here

protected function ProjectServiceContainer::getDecoratedService in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Tests/Fixtures/php/services9.php \ProjectServiceContainer::getDecoratedService()

Gets the 'decorated' 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/services9.php, line 115

Class

ProjectServiceContainer
ProjectServiceContainer.

Code

protected function getDecoratedService() {
  return $this->services['decorated'] = new \stdClass();
}