2020-08-31 16:27:47 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace OCA\BigBlueButton;
|
|
|
|
|
|
|
|
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
2020-09-23 12:33:09 +02:00
|
|
|
use OCP\AppFramework\Http\Response;
|
|
|
|
use OCP\Template;
|
2020-08-31 16:27:47 +02:00
|
|
|
|
2024-10-28 14:59:01 +01:00
|
|
|
/**
|
|
|
|
* @template-extends Response<int, array<string, mixed>>
|
2024-10-28 15:14:22 +01:00
|
|
|
*
|
|
|
|
* (NC < 28)
|
|
|
|
* @psalm-suppress TooManyTemplateParams
|
2024-10-28 14:59:01 +01:00
|
|
|
*/
|
2020-08-31 16:27:47 +02:00
|
|
|
class NotFoundResponse extends Response {
|
|
|
|
public function __construct() {
|
|
|
|
parent::__construct();
|
|
|
|
|
|
|
|
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
|
|
|
|
$this->setStatus(404);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function render() {
|
|
|
|
$template = new Template('bbb', '404', 'guest');
|
|
|
|
return $template->fetchPage();
|
|
|
|
}
|
|
|
|
}
|