You are here

public function NegotiationMiddleware::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php \Drupal\Core\StackMiddleware\NegotiationMiddleware::__construct()

Constructs a new NegotiationMiddleware.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $app: The wrapper HTTP kernel

File

core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php, line 40
Contains \Drupal\Core\StackMiddleware\NegotiationMiddleware.

Class

NegotiationMiddleware
Provides a middleware to determine the content type upon the accept header.

Namespace

Drupal\Core\StackMiddleware

Code

public function __construct(HttpKernelInterface $app) {
  $this->app = $app;
}