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;
|
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
|
|
|
|
* @NoCSRFRequired
|
|
|
|
*/
|
|
|
|
public function index() {
|
2021-02-24 14:59:56 +01:00
|
|
|
return $this->templateProvider->getManager();
|
2020-08-26 10:57:31 +02:00
|
|
|
}
|
|
|
|
}
|