via example

'trace' => $e->getTraceAsString(),
    ];
    $response['Content-Type'] = 'application/json';
    $response->body(json_encode($data));
});

$app->map('/noaccess', function D) use ($app) {
    $app->view()->setData('filePath', UPDATE_PATH . '/allowed_ip.txt');

    $app->render('noaccess.php');
    $app->response()->status(403);
})->via('GET', 'POST')->name('noAccess');

$app->map('/', function D) use ($app) {
    $app->render('welcome.php');

    if (!UPDATE_IS_MANUAL) {
        $app->redirect($app->urlFor('checks'));

        return;
    }
})->via('GET', 'POST')->name('welcome');

$response->body(json_encode($data));
});

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

    $container['shopware.notify']->doTrackEvent('Installer started');

    $app->view()->set('languages', $container->offsetGet('config')['languages']);

    $app->render('/language-selection.php');
})->via('GET', 'POST')->name('language-selection');

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

    if ($app->request()->isPost()) {
        if ($app->request->post('tos')) {
            $app->redirect($menuHelper->getNextUrl());

            return;
        }

        
Home | Imprint | This part of the site doesn't use cookies.