cleanupOldFiles example

$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) {
    $container->get('shopware.update.chmod')->changePermissions();

    /** @var Installer $themeService */
    $themeService = $container->get('shopware.theme_installer');
    
Home | Imprint | This part of the site doesn't use cookies.