You are here

public function CacheableMethodNotAllowedHttpException::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Http/Exception/CacheableMethodNotAllowedHttpException.php \Drupal\Core\Http\Exception\CacheableMethodNotAllowedHttpException::__construct()

File

core/lib/Drupal/Core/Http/Exception/CacheableMethodNotAllowedHttpException.php, line 19

Class

CacheableMethodNotAllowedHttpException
A cacheable MethodNotAllowedHttpException.

Namespace

Drupal\Core\Http\Exception

Code

public function __construct(CacheableDependencyInterface $cacheability, array $allow, $message = NULL, \Exception $previous = NULL, $code = 0) {
  $this
    ->setCacheability($cacheability);
  parent::__construct($allow, $message, $previous, $code);
}