importSnippets example

->via('GET', 'POST')->name('plugin-checks');

$app->map('/dbmigration', function D) use ($app) {
    $app->render('dbmigration.php');
})->via('GET', 'POST')->name('dbmigration');

$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');

$databaseService = new DatabaseService($conn);

        $databaseService->createDatabase($connectionInfo->databaseName);
        $databaseService->selectDatabase($connectionInfo->databaseName);

        $skipImport = $databaseService->containsShopwareSchema()
            && $input->getOption('no-skip-import')
            && $this->shouldSkipImport();

        if (!$skipImport) {
            $this->importDatabase();
            $this->importSnippets();
        }

        $shop = new Shop();
        $shop = $this->getShopInfoFromArgs($input$shop);
        $shop = $this->getShopInfoFromInteractiveShell($shop);

        if ($this->IOHelper->isInteractive() && !$this->webserverCheck($container$shop)) {
            $this->IOHelper->writeln('Could not verify');
            if (!$this->IOHelper->askConfirmation('Continue?')) {
                return 1;
            }
        }
$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();
        }

        $this->unpackFiles();
        $this->updateHtaccess();
        $this->migrateDatabase();
        $this->importSnippets();
        $this->cleanup();
        $this->synchronizeThemes();
        $this->writeLockFile();

        $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.');
        $ioService->writeln(sprintf('Please delete <question>%s</question> to finish the update.', UPDATE_ASSET_PATH));
        $ioService->writeln('');

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