You are here

public function Esi::__construct in Zircon Profile 8

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

Constructor.

Parameters

array $contentTypes An array of content-type that should be parsed for ESI information.: (default: text/html, text/xml, application/xhtml+xml, and application/xml)

File

vendor/symfony/http-kernel/HttpCache/Esi.php, line 43

Class

Esi
Esi implements the ESI capabilities to Request and Response instances.

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function __construct(array $contentTypes = array(
  'text/html',
  'text/xml',
  'application/xhtml+xml',
  'application/xml',
)) {
  $this->contentTypes = $contentTypes;
}