Esempio n. 1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->addConsoleOutputColors($output);
     /** @var \Aurora\Console\Application $app */
     $app = $this->getApplication();
     if (!($config = $app->getConfig())) {
         $configPath = $this->getAuroraConfigPath($input->getOption('config'));
         if (!is_file($configPath)) {
             throw new Exception("Could not find the configuration file: {$configPath}");
         }
         FileConfig::create($configPath);
         $config = new DaemonConfig();
     }
     $this->daemon = new Daemon($config);
 }