public function __construct(Cli $application) { $this->setApplication($application); parent::__construct(); }
/** * @param $command */ public function add(Command $command) { $this->commands[$command->getName()] = $command; }