protected function installPackage($sourceFolder, JsonAutoloader $autoloader)
    {
        $bundleName = $autoloader->getBundleName();

        if (array_key_exists('all', $autoloader->getBundles()) || array_key_exists($this->environment, $autoloader->getBundles())) {
            $target = $this->autoloadersPath . '/' . $bundleName  . '.json';
            $this->copy($autoloader->getFilename(), $target);

            $sourceFolder = $sourceFolder . '/Resources/config';
            $filename = $bundleName . '.yml';
            $this->copyConfigurationFile('config', $filename, $sourceFolder, $this->configPath);
            $this->copy($sourceFolder . '/routing.yml', $this->routingPath . '/' . $filename);
        }
    }