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'
File
- src/
Controller/ SecuritytxtController.php, line 74
Class
- SecuritytxtController
- Controller routines for securitytxt routes.
Namespace
Drupal\securitytxt\ControllerCode
public function securitytxtSignature() {
$content = $this->serializer
->getSecuritytxtSignature($this->settings);
$response = new Response($content, 200, [
'Content-Type' => 'text/plain',
]);
return $response;
}