cloud_bbb/lib/Controller/PageController.php

31 lines
669 B
PHP
Raw Normal View History

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