Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7528134

Browse files
committed
Removed ESI instance check
1 parent bb1c6f6 commit 7528134

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,10 @@ public function getKernel()
153153
/**
154154
* Gets the Surrogate instance.
155155
*
156-
* @throws \LogicException
157-
*
158156
* @return SurrogateInterface A Surrogate instance
159157
*/
160158
public function getSurrogate()
161159
{
162-
if (!$this->surrogate instanceof Esi) {
163-
throw new \LogicException('This instance of HttpCache was not set up to use ESI as surrogate handler. You must overwrite and use createSurrogate');
164-
}
165-
166160
return $this->surrogate;
167161
}
168162

0 commit comments

Comments
 (0)