backgroundQueue = $backgroundQueue; } protected function configure() { $this->setName('background-queue:update-schema'); $this->setDescription('Update table schema if needed.'); $this->addOption('force', 'f', InputOption::VALUE_NONE, 'Force schema update'); } /** * @throws SchemaException * @throws Exception */ protected function executeCommand(InputInterface $input, OutputInterface $output): int { $this->backgroundQueue->updateSchema($input->getOption('force')); return 0; } }