You are here

public function Ssi::__construct in Zircon Profile 8

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

Constructor.

Parameters

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

File

vendor/symfony/http-kernel/HttpCache/Ssi.php, line 37

Class

Ssi
Ssi implements the SSI 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;
}