cloud_bbb/lib/NotFoundResponse.php

22 lines
452 B
PHP
Raw Permalink Normal View History

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
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();
}
}