$app->map('/applyMigrations', function D)use($container){ $container->get('controller.batch')->applyMigrations(); })->via('GET', 'POST')->name('applyMigrations');
$app->map('/importSnippets', function D)use($container){ $container->get('controller.batch')->importSnippets(); })->via('GET', 'POST')->name('importSnippets');
$app->map('/unpack', function D)use($container){ $container->get('controller.batch')->unpack(); $container->get('controller.batch')->updateHtaccess(); })->via('GET', 'POST')->name('unpack');
$app->map('/cleanup', function D)use($container){ $container->get('controller.cleanup')->cleanupOldFiles(); })->via('GET', 'POST')->name('cleanup');
$app->map('/clearCache', function D)use($container){ $container->get('controller.cleanup')->deleteOutdatedFolders(); })->via('GET', 'POST')->name('clearCache');
$app->map('/done', function D)use($app, $container){
if($ioService->isInteractive()){ $ioService->cls(); $ioService->printBanner(); $ioService->writeln('<info>Welcome to the Shopware updater </info>'); $ioService->writeln(sprintf('Shopware Version %s', $version)); $ioService->writeln(''); $ioService->ask('Press return to start the update.'); $ioService->cls(); }
$ioService->cls(); $ioService->writeln(''); $ioService->writeln(''); $ioService->writeln('<info>The update has been finished succesfuly.</info>'); $ioService->writeln('Your shop is currently in maintenance mode.');