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'
);