protected function parseExtraFolders()
    {
        foreach ($this->extraFolders as $folder) {
            $finder = new Finder();
            if (is_dir($folder)) {
                $bundleFolders = $finder->directories()->depth(0)->in($folder);
                foreach ($bundleFolders as $bundleFolder) {
                    $bundleName = basename($bundleFolder);
                    $this->addBundle($bundleName, (string)$bundleFolder);
                }
            }
        }
    }