Example #1
0
 protected function checkConfigHash(Project $project, InputInterface $input, OutputInterface $output)
 {
     $config = $this->get('config');
     $helper = $this->getHelper('question');
     if ($project->getConfigHash() != $config->getConfigHash()) {
         $question = new ConfirmationQuestion('Load new gruver config? <info>(y/n)</info>  ', false);
         $loadConfig = $helper->ask($input, $output, $question);
         if ($loadConfig) {
             $command = $this->getApplication()->find('load-config');
             $code = $command->run(new ArrayInput(array()), $output);
             if (!$code) {
                 exit;
             }
         }
     }
 }