public function __construct(array $commands = array(), OptionsParser $parser = null, TextWriter $writer = null) { $this->optionsParser = $parser ?: new DefaultOptionsParser(); $this->textWriter = $writer ?: new StdTextWriter(); if ($this->helpCommandClass) { $this->addCommand($this->helpCommandClass, $this->helpCommand); $this->addCommands($commands); } }
/** * Class constructor */ public function __construct() { parent::__construct(); $this->addCommandsFromDir(__DIR__ . '/Console', 'Jasny\\DBVC\\Console'); $this->setDefaultCommand('help'); }