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

Skip to content

Commit 605e133

Browse files
committed
bug #16970 [HttpKernel] HttpCache: remove an ESI instance checking (voronkovich)
This PR was merged into the 3.0 branch. Discussion ---------- [HttpKernel] HttpCache: remove an ESI instance checking | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | no | License | MIT | Doc PR | no This checking was added by this commit 32d964b, but now it's not needed Commits ------- 7528134 Removed ESI instance check
2 parents bb1c6f6 + 7528134 commit 605e133

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)