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); }