container = $container; $this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id; } /** * Lazy loads the real service from the container. * * @return object * Returns the constructed real service. */ protected function lazyLoadItself() { if (!isset($this->service)) { $this->service = $this->container->get($this->drupalProxyOriginalServiceId); } return $this->service; } /** * {@inheritdoc} */ public function check(\Symfony\Component\HttpFoundation\Response $response, \Symfony\Component\HttpFoundation\Request $request) { return $this->lazyLoadItself()->check($response, $request); } /** * {@inheritdoc} */ public function addPolicy(\Drupal\Core\PageCache\ResponsePolicyInterface $policy) { return $this->lazyLoadItself()->addPolicy($policy); } } }