From 7528134b8e98422309dd0d18f1bbf7d44fd9f317 Mon Sep 17 00:00:00 2001 From: Oleg Voronkovich Date: Fri, 11 Dec 2015 19:11:08 +0300 Subject: [PATCH] Removed ESI instance check --- src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php index 72c27d28c3bf8..a66c9d0c11864 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php @@ -153,16 +153,10 @@ public function getKernel() /** * Gets the Surrogate instance. * - * @throws \LogicException - * * @return SurrogateInterface A Surrogate instance */ public function getSurrogate() { - if (!$this->surrogate instanceof Esi) { - throw new \LogicException('This instance of HttpCache was not set up to use ESI as surrogate handler. You must overwrite and use createSurrogate'); - } - return $this->surrogate; } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy