->
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) { $container->
get('shopware.update.chmod'
)->
changePermissions();
/** @var Installer $themeService */
$themeService =
$container->
get('shopware.theme_installer'
);
$themeService->
synchronize();
if (is_dir(SW_PATH . '/recovery/install'
)) { /** @var SystemLocker $systemLocker */
$systemLocker =
$container->
get('system.locker'
);
$systemLocker();
}