2020-08-26 10:57:31 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace OCA\BigBlueButton\Controller;
|
|
|
|
|
|
|
|
use OCP\AppFramework\Controller;
|
2020-09-23 12:33:09 +02:00
|
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
2020-09-23 09:13:26 +02:00
|
|
|
use OCP\IConfig;
|
2020-09-23 12:33:09 +02:00
|
|
|
use OCP\IRequest;
|
2020-08-26 10:57:31 +02:00
|
|
|
|
|
|
|
class PageController extends Controller {
|
2020-09-23 09:13:26 +02:00
|
|
|
/** @var IConfig */
|
|
|
|
private $config;
|
|
|
|
|
|
|
|
public function __construct(string $appName, IRequest $request, IConfig $config) {
|
2020-08-26 10:57:31 +02:00
|
|
|
parent::__construct($appName, $request);
|
2020-09-23 09:13:26 +02:00
|
|
|
|
|
|
|
$this->config = $config;
|
2020-08-26 10:57:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @NoAdminRequired
|
|
|
|
* @NoCSRFRequired
|
|
|
|
*/
|
|
|
|
public function index() {
|
2020-09-23 09:13:26 +02:00
|
|
|
return new TemplateResponse($this->appName, 'manager', [
|
|
|
|
'shortener' => $this->config->getAppValue('bbb', 'app.shortener', ''),
|
|
|
|
]);
|
2020-08-26 10:57:31 +02:00
|
|
|
}
|
|
|
|
}
|