public function __construct()
 {
     $name = 'Silverstripe Console';
     $version = '1';
     parent::__construct($name, $version);
     $this->loadCommands();
     $this->add($default = new DefaultCommand());
     $this->setDefaultCommand($default->getName());
     $this->setAutoExit(false);
     $this->setCatchExceptions(true);
 }
 /**
  * constructor : should be protected
  * @return void
  */
 protected function __construct()
 {
     self::$_default_cmd = DefaultCommand::getInstance();
     self::$_base_cmd = new \ReflectionClass('library\\Command');
 }