protected function ProjectServiceContainer::getRequestService

Gets the 'request' service.

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

Throws

RuntimeException always since this service is expected to be injected dynamically

File

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

Class

ProjectServiceContainer
ProjectServiceContainer

Code

protected function getRequestService() {
  throw new RuntimeException('You have requested a synthetic service ("request"). The DIC does not know how to construct this service.');
}