config = $config; $this->l = $l; } /** * @return TemplateResponse */ public function getManager(): TemplateResponse { $warning = ''; if (empty($this->config->getAppValue('bbb', 'api.url')) || empty($this->config->getAppValue('bbb', 'api.secret'))) { $warning = $this->l->t('API URL or secret not configured. Please contact your administrator.'); } return new TemplateResponse('bbb', 'manager', [ 'warning' => $warning, 'shortener' => $this->config->getAppValue('bbb', 'app.shortener', ''), ]); } }