helper = new JSConfigHelper( $l10nFactory->get('lib'), $defaults, $appManager, $session, $userSession->getUser(), $config, $groupManager, $iniWrapper, $urlGenerator, $capabilitiesManager, $initialStateService, $tokenProvider, $filenameValidator, ); } /** * @NoTwoFactorRequired */ #[PublicPage] #[NoCSRFRequired] #[FrontpageRoute(verb: 'GET', url: '/core/js/oc.js')] public function getConfig(): DataDisplayResponse { $data = $this->helper->getConfig(); return new DataDisplayResponse($data, Http::STATUS_OK, ['Content-type' => 'text/javascript']); } }