changeDetector = $changeDetector;
parent::__construct();
}
/**
* {@inheritdoc}
*/
protected function configure()
{
$this->setName('app:config:status')
->setDescription('Checks if config propagation requires update');
parent::configure();
}
/**
* {@inheritdoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
if ($this->changeDetector->hasChanges()) {
$output->writeln(
'Config files have changed. ' .
'Run app:config:import or setup:upgrade command to synchronize configuration.'
);
return self::EXIT_CODE_CONFIG_IMPORT_REQUIRED;
}
$output->writeln('Config files are up to date.');
return Cli::RETURN_SUCCESS;
}
}