public function run() { parent::run(); throw new Exception('My Exception'); }
/** * Run the Command * @param Command $command */ protected function runCommand($command) { list($rv, $new_class, $input_data) = $command->exec(); $rv === true ? $this->success() : $this->failed(); if (!is_null($new_class)) { $this->loadCommand($new_class, $input_data); } }