try { $db =
$container->
offsetGet('db'
);
} catch (\Exception
$e) { $menuHelper->
setCurrent('database-configuration'
);
$app->
render('database-configuration.php',
['error' => 'Please fill in all fields'
]);
return;
} if ($app->
request()->
isPost()) { $adminUser =
new \Shopware\Recovery\Install\Struct\
AdminUser([ 'email' =>
$_SESSION['parameters'
]['c_config_admin_email'
],
'username' =>
$_SESSION['parameters'
]['c_config_admin_username'
],
'name' =>
$_SESSION['parameters'
]['c_config_admin_name'
],
'password' =>
$_SESSION['parameters'
]['c_config_admin_password'
],
'locale' =>
localeForLanguage($_SESSION['language'
]),
]);
$shop =
new \Shopware\Recovery\Install\Struct\
Shop([ 'name' =>
$_SESSION['parameters'
]['c_config_shopName'
],
'locale' =>
$_SESSION['parameters'
]['c_config_shop_language'
],
'currency' =>
$_SESSION['parameters'
]['c_config_shop_currency'
],