You are here

public function SecuritytxtController::securitytxtSignature in Security.txt 8

Get the security.txt.sig file as a response object.

Return value

\Symfony\Component\HttpFoundation\Response The security.txt.sig file as a response object with a content type of 'text/plain'.

1 string reference to 'SecuritytxtController::securitytxtSignature'
securitytxt.routing.yml in ./securitytxt.routing.yml
securitytxt.routing.yml

File

src/Controller/SecuritytxtController.php, line 74

Class

SecuritytxtController
Controller routines for securitytxt routes.

Namespace

Drupal\securitytxt\Controller

Code

public function securitytxtSignature() {
  $content = $this->serializer
    ->getSecuritytxtSignature($this->settings);
  $response = new Response($content, 200, [
    'Content-Type' => 'text/plain',
  ]);
  return $response;
}