diff options
Diffstat (limited to 'core/Controller/OCJSController.php')
-rw-r--r-- | core/Controller/OCJSController.php | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/core/Controller/OCJSController.php b/core/Controller/OCJSController.php index 379b08bf22e..fa13f21607c 100644 --- a/core/Controller/OCJSController.php +++ b/core/Controller/OCJSController.php @@ -45,28 +45,9 @@ use OCP\IUserSession; use OCP\L10N\IFactory; class OCJSController extends Controller { + private JSConfigHelper $helper; - /** @var JSConfigHelper */ - private $helper; - - /** - * OCJSController constructor. - * - * @param string $appName - * @param IRequest $request - * @param IFactory $l10nFactory - * @param Defaults $defaults - * @param IAppManager $appManager - * @param ISession $session - * @param IUserSession $userSession - * @param IConfig $config - * @param IGroupManager $groupManager - * @param IniGetWrapper $iniWrapper - * @param IURLGenerator $urlGenerator - * @param CapabilitiesManager $capabilitiesManager - * @param IInitialStateService $initialStateService - */ - public function __construct($appName, + public function __construct(string $appName, IRequest $request, IFactory $l10nFactory, Defaults $defaults, @@ -100,10 +81,8 @@ class OCJSController extends Controller { * @NoCSRFRequired * @NoTwoFactorRequired * @PublicPage - * - * @return DataDisplayResponse */ - public function getConfig() { + public function getConfig(): DataDisplayResponse { $data = $this->helper->getConfig(); return new DataDisplayResponse($data, Http::STATUS_OK, ['Content-type' => 'text/javascript']); |