10 use Symfony\Component\Console\Command\Command;
11 use Symfony\Component\Console\Input\InputInterface;
12 use Symfony\Component\Console\Output\OutputInterface;
27 private $changeDetector;
35 $this->changeDetector = $changeDetector;
36 parent::__construct();
44 $this->setName(
'app:config:status')
45 ->setDescription(
'Checks if config propagation requires update');
54 if ($this->changeDetector->hasChanges()) {
56 '<info>Config files have changed. ' .
57 'Run app:config:import or setup:upgrade command to synchronize configuration.</info>' 61 $output->writeln(
'<info>Config files are up to date.</info>');
execute(InputInterface $input, OutputInterface $output)
const EXIT_CODE_CONFIG_IMPORT_REQUIRED
__construct(ChangeDetector $changeDetector)