framework = $framework; parent::__construct(); } protected function configure(): void { $this ->setName(self::$defaultName) ->setDescription('Show Shopware status') ; } protected function execute(InputInterface $input, OutputInterface $output): int { $this->framework->initialize(); $io = new SymfonyStyle($input, $output); $io->title('Shopware system status'); /** @var Shopware $Shopware */ $Shopware = System::getContainer()->get(Shopware::class); if ($Shopware->isShopwareRunning()) { $io->success('Shopware system is running'); } else { $io->error('Shopware system is not running properly'); } return 0; } }