cloud_bbb/lib/Controller/PageController.php

30 lines
624 B
PHP
Raw Normal View History

<?php
namespace OCA\BigBlueButton\Controller;
use OCP\AppFramework\Controller;
2020-09-23 12:33:09 +02:00
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
2020-09-23 12:33:09 +02:00
use OCP\IRequest;
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', ''),
]);
}
}