web-base/core/Documents/Document404.class.php
2021-12-08 16:54:53 +01:00

19 lines
320 B
PHP

<?php
namespace Documents;
use Elements\TemplateDocument;
use Objects\User;
class Document404 extends TemplateDocument {
public function __construct(User $user) {
parent::__construct($user, "404.twig");
}
public function loadParameters() {
parent::loadParameters();
http_response_code(404);
}
}