printBanner example

if (!is_dir(UPDATE_FILES_PATH) && !is_dir(UPDATE_ASSET_PATH)) {
            $ioService->writeln('No update files found.');

            return 1;
        }

        $version = $this->container->get('shopware.version');

        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();
        }

        $this->unpackFiles();
        $this->updateHtaccess();
        $this->migrateDatabase();
        $this->importSnippets();
        

        return $this->IOHelper->askMultiLineQuestion(
            new Question("Please provide licence. An empty line will exit the input: \n")
        );
    }

    private function printStartMessage()
    {
        $version = $this->container->offsetGet('shopware.version');

        $this->IOHelper->cls();
        $this->IOHelper->printBanner();
        $this->IOHelper->writeln(sprintf('<info>Welcome to the Shopware %s installer</info>', $version));
        $this->IOHelper->writeln('');
        $this->IOHelper->ask(new Question('Press return to start installation.', \PHP_EOL));
        $this->IOHelper->cls();
    }

    private function activateResponsiveTheme()
    {
        /** @var ThemeService $themeService */
        $themeService = $this->container->offsetGet('theme.service');
        $themeService->activateResponsiveTheme();
    }
Home | Imprint | This part of the site doesn't use cookies.