Example #1
0
 /**
  * Command constructor.
  *
  * @param \Codex\Core\Contracts\Codex|\Codex\Core\Factory             $codex
  * @param \Illuminate\Contracts\Queue\Queue                           $queue
  * @param \Codex\Hooks\Git\Contracts\Factory|\Codex\Hooks\Git\Factory $git
  */
 public function __construct(Codex $codex, Queue $queue, Git $git)
 {
     parent::__construct();
     $this->codex = $codex;
     $this->queue = $queue;
     $this->git = $git;
 }
Example #2
0
 public function getProcessedHelp()
 {
     $name = parent::getName();
     $replace = ['%command.name%' => $name, '%command.full_name%' => $_SERVER['PHP_SELF'] . ' ' . $name, '%command.bin%' => $this->getLaravel()->getSlug() . ' ' . $name];
     return str_replace(array_keys($replace), array_values($replace), $this->getHelp() ?: $this->getDescription());
 }