databaseUpgradeWizardsService->getBlockingDatabaseAdds(); // Nothing to add, early return if ($adds === []) { return true; } $this->output->writeln('Performing ' . count($adds) . ' database operations.'); // remove potentially empty error messages $errorMessages = array_filter($this->databaseUpgradeWizardsService->addMissingTablesAndFields()); return $errorMessages === []; } public function isFulfilled(): bool { $adds = $this->databaseUpgradeWizardsService->getBlockingDatabaseAdds(); return count($adds) === 0; } public function setOutput(OutputInterface $output): void { $this->output = $output; } }