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 commit32d964ba39
, but now it's not needed Commits -------7528134
Removed ESI instance check
This commit is contained in:
commit
605e13310b
@ -153,16 +153,10 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
|
|||||||
/**
|
/**
|
||||||
* Gets the Surrogate instance.
|
* Gets the Surrogate instance.
|
||||||
*
|
*
|
||||||
* @throws \LogicException
|
|
||||||
*
|
|
||||||
* @return SurrogateInterface A Surrogate instance
|
* @return SurrogateInterface A Surrogate instance
|
||||||
*/
|
*/
|
||||||
public function getSurrogate()
|
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;
|
return $this->surrogate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user