protected function getCommands() { $commands_path = $this->bundlePath . '/commands/'; if (!is_dir($commands_path)) { return array(); } return $this->getCommandsInDirectory($commands_path, ''); }