Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb1c6f6 commit 7528134Copy full SHA for 7528134
src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
@@ -153,16 +153,10 @@ public function getKernel()
153
/**
154
* Gets the Surrogate instance.
155
*
156
- * @throws \LogicException
157
- *
158
* @return SurrogateInterface A Surrogate instance
159
*/
160
public function getSurrogate()
161
{
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
-
166
return $this->surrogate;
167
}
168
0 commit comments