You are here

public function ReportUri::__construct in Content-Security-Policy 8

Create a new Report URI Controller.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The Request Stack service.

\Psr\Log\LoggerInterface $logger: The Logger channel.

File

src/Controller/ReportUri.php, line 40

Class

ReportUri
Report URI Controller.

Namespace

Drupal\csp\Controller

Code

public function __construct(RequestStack $requestStack, LoggerInterface $logger) {
  $this->requestStack = $requestStack;
  $this->logger = $logger;
}