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);
        }
    }
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);
        }
    }
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 ) ; } }
Installs the autoloader.json, the routing and config files

@param string $sourceFolder          The source folder where the autoloader is placed
@param JsonAutoloader $autoloader    The generated autoloader object
Installs the autoloader . json the routing and config files