2 // @codingStandardsIgnoreFile
5 * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\PageCache\ChainResponsePolicy' "core/lib/Drupal/Core".
8 namespace Drupal\Core\ProxyClass\PageCache {
11 * Provides a proxy class for \Drupal\Core\PageCache\ChainResponsePolicy.
13 * @see \Drupal\Component\ProxyBuilder
15 class ChainResponsePolicy implements \Drupal\Core\PageCache\ChainResponsePolicyInterface
18 use \Drupal\Core\DependencyInjection\DependencySerializationTrait;
21 * The id of the original proxied service.
25 protected $drupalProxyOriginalServiceId;
28 * The real proxied service, after it was lazy loaded.
30 * @var \Drupal\Core\PageCache\ChainResponsePolicy
35 * The service container.
37 * @var \Symfony\Component\DependencyInjection\ContainerInterface
42 * Constructs a ProxyClass Drupal proxy object.
44 * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
46 * @param string $drupal_proxy_original_service_id
47 * The service ID of the original service.
49 public function __construct(\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id)
51 $this->container = $container;
52 $this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id;
56 * Lazy loads the real service from the container.
59 * Returns the constructed real service.
61 protected function lazyLoadItself()
63 if (!isset($this->service)) {
64 $this->service = $this->container->get($this->drupalProxyOriginalServiceId);
67 return $this->service;
73 public function check(\Symfony\Component\HttpFoundation\Response $response, \Symfony\Component\HttpFoundation\Request $request)
75 return $this->lazyLoadItself()->check($response, $request);
81 public function addPolicy(\Drupal\Core\PageCache\ResponsePolicyInterface $policy)
83 return $this->lazyLoadItself()->addPolicy($policy);