You are here

protected function ProjectServiceContainer::synchronizeRequestService in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services20.php \ProjectServiceContainer::synchronizeRequestService()

Updates the 'request' service.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services20.php, line 67

Class

ProjectServiceContainer
ProjectServiceContainer.

Code

protected function synchronizeRequestService() {
  if ($this
    ->initialized('depends_on_request')) {
    $this
      ->get('depends_on_request')
      ->setRequest($this
      ->get('request', ContainerInterface::NULL_ON_INVALID_REFERENCE));
  }
}