activateResponsiveTheme example

$currencyService->updateCurrency($shop);

        $localeService = new LocaleSettingsService($conn$container);
        $localeService->updateLocaleSettings($shop->locale);

        if (!$input->getOption('skip-admin-creation')) {
            $adminService = new AdminService($conn);
            $adminService->createAdmin($adminUser);
            $adminService->addWidgets($adminUser);
        }

        $this->activateResponsiveTheme();

        if ($this->IOHelper->isInteractive()) {
            $this->IOHelper->cls();
            $this->IOHelper->writeln('<info>=== License Information ===</info>');

            /** @var LicenseUnpackService $licenseService */
            $licenseService = $container->offsetGet('license.service');

            /** @var LicenseInstaller $licenseInstaller */
            $licenseInstaller = $container->offsetGet('license.installer');

            
if (empty($_SESSION['parameters']['c_config_admin_language'])) {
        $_SESSION['parameters']['c_config_admin_language'] = $translationService->translate('locale');
    }

    $app->view()->setData('parameters', $_SESSION['parameters']);
    $app->render('/configuration.php', []);
})->name('configuration')->via('GET', 'POST');

$app->map('/finalize/', function D) use ($app$container) {
    /** @var ThemeService $themeService */
    $themeService = $container->offsetGet('theme.service');
    $themeService->activateResponsiveTheme();

    $app->redirect($app->urlFor('finish'));
})->name('finalize')->via('GET', 'POST');

$app->map('/finish/', function D) use ($app$menuHelper$container) {
    $menuHelper->setCurrent('finish');

    $basepath = str_replace('/recovery/install/index.php', '', $_SERVER['SCRIPT_NAME']);

    /** @var \Shopware\Recovery\Common\SystemLocker $systemLocker */
    $systemLocker = $container->offsetGet('system.locker');
    
Home | Imprint | This part of the site doesn't use cookies.