public function run() { try { $cron = new CronTab($this->config['data']); $cron->registerExecutor(trim($this->php . ' ' . (!empty($this->config['executor']) ? $this->config['executor'] : $this->_) . ' --job=')); if (isset($this->args['--master'])) { $cron->start(); } elseif (!empty($this->args['--job'])) { if (is_array($this->args['--job'])) { foreach ($this->args['--job'] as $command) { $cron->dispatch($command); } } else { $cron->execute($this->args['--job']); } } else { $this->usage(); } } catch (\Exception $e) { } }