You are here

public function HttpCache::getEsi in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/HttpCache/HttpCache.php \Symfony\Component\HttpKernel\HttpCache\HttpCache::getEsi()

Gets the Esi instance.

Return value

Esi An Esi instance

Throws

\LogicException

Deprecated

since version 2.6, to be removed in 3.0. Use getSurrogate() instead

File

vendor/symfony/http-kernel/HttpCache/HttpCache.php, line 178

Class

HttpCache
Cache provides HTTP caching.

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function getEsi() {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.6 and will be removed in 3.0. Use the getSurrogate() method instead.', E_USER_DEPRECATED);
  return $this
    ->getSurrogate();
}