cloud_bbb/lib/NotFoundResponse.php

22 lines
452 B
PHP

<?php
namespace OCA\BigBlueButton;
use OCP\AppFramework\Http\ContentSecurityPolicy;
use OCP\AppFramework\Http\Response;
use OCP\Template;
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();
}
}