protected function getCommandClasses(array $modules)
    {
        $classes = [];
        foreach ($modules as $nameSpace => $path) {
            $classes = array_merge($classes, $this->getClasses($nameSpace, $path));
        }
        return $classes;
    }