2020-08-26 10:57:31 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace OCA\BigBlueButton\Controller;
|
|
|
|
|
2021-02-24 14:59:56 +01:00
|
|
|
use OCA\BigBlueButton\TemplateProvider;
|
2020-08-26 10:57:31 +02:00
|
|
|
use OCP\AppFramework\Controller;
|
2021-02-24 15:23:26 +01:00
|
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
2020-09-23 12:33:09 +02:00
|
|
|
use OCP\IRequest;
|
2020-08-26 10:57:31 +02:00
|
|
|
|
|
|
|
class PageController extends Controller {
|
2021-02-24 14:59:56 +01:00
|
|
|
/** @var TemplateProvider */
|
|
|
|
private $templateProvider;
|
2020-09-23 09:13:26 +02:00
|
|
|
|
2021-02-24 14:59:56 +01:00
|
|
|
public function __construct(string $appName, IRequest $request, TemplateProvider $templateProvider) {
|
2020-08-26 10:57:31 +02:00
|
|
|
parent::__construct($appName, $request);
|
2020-09-23 09:13:26 +02:00
|
|
|
|
2021-02-24 14:59:56 +01:00
|
|
|
$this->templateProvider = $templateProvider;
|
2020-08-26 10:57:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @NoAdminRequired
|
2021-02-24 15:23:26 +01:00
|
|
|
*
|
2020-08-26 10:57:31 +02:00
|
|
|
* @NoCSRFRequired
|
2021-02-24 15:23:26 +01:00
|
|
|
*
|
|
|
|
* @return TemplateResponse
|
2020-08-26 10:57:31 +02:00
|
|
|
*/
|
2021-02-24 15:23:26 +01:00
|
|
|
public function index(): TemplateResponse {
|
2021-02-24 14:59:56 +01:00
|
|
|
return $this->templateProvider->getManager();
|
2020-08-26 10:57:31 +02:00
|
|
|
}
|
|
|
|
}
|