public function 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

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Esi.php, line 39

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;
}