protected function ProjectServiceContainer::getDependsOnRequestService

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

Class

ProjectServiceContainer
ProjectServiceContainer

Code

protected function getDependsOnRequestService() {
  $this->services['depends_on_request'] = $instance = new \stdClass();
  $instance
    ->setRequest($this
    ->get('request', ContainerInterface::NULL_ON_INVALID_REFERENCE));
  return $instance;
}