cloud_bbb/lib/Controller/PageController.php

30 lines
624 B
PHP

<?php
namespace OCA\BigBlueButton\Controller;
use OCP\IRequest;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Controller;
use OCP\IConfig;
class PageController extends Controller {
/** @var IConfig */
private $config;
public function __construct(string $appName, IRequest $request, IConfig $config) {
parent::__construct($appName, $request);
$this->config = $config;
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
public function index() {
return new TemplateResponse($this->appName, 'manager', [
'shortener' => $this->config->getAppValue('bbb', 'app.shortener', ''),
]);
}
}