public function execute($command) { $command = trim($command); if (empty($command)) { throw new Exception('Empty command supplied.'); } $this->prompt($command); $this->runCommandRecursive($command); }