protected function registerPackageFromStateConfiguration($composerName, $packageStateConfiguration)
    {
        $packagePath = isset($packageStateConfiguration['packagePath']) ? $packageStateConfiguration['packagePath'] : null;
        $packageClassInformation = isset($packageStateConfiguration['packageClassInformation']) ? $packageStateConfiguration['packageClassInformation'] : null;
        $package = $this->packageFactory->create($this->packagesBasePath, $packagePath, $packageStateConfiguration['packageKey'], $composerName, $packageStateConfiguration['autoloadConfiguration'], $packageClassInformation);
        $this->packageKeys[strtolower($package->getPackageKey())] = $package->getPackageKey();
        $this->packages[$package->getPackageKey()] = $package;
    }
protected function registerPackageFromStateConfiguration($composerName, $packageStateConfiguration)
    {
        $packagePath = isset($packageStateConfiguration['packagePath']) ? $packageStateConfiguration['packagePath'] : null;
        $packageClassInformation = isset($packageStateConfiguration['packageClassInformation']) ? $packageStateConfiguration['packageClassInformation'] : null;
        $package = $this->packageFactory->create($this->packagesBasePath, $packagePath, $packageStateConfiguration['packageKey'], $composerName, $packageStateConfiguration['autoloadConfiguration'], $packageClassInformation);
        $this->packageKeys[strtolower($package->getPackageKey())] = $package->getPackageKey();
        $this->packages[$package->getPackageKey()] = $package;
    }
protected function registerPackageFromStateConfiguration ( $ composerName , $ packageStateConfiguration ) { $ packagePath = isset ( $ packageStateConfiguration [ 'packagePath' ] ) ? $ packageStateConfiguration [ 'packagePath' ] : null ; $ packageClassInformation = isset ( $ packageStateConfiguration [ 'packageClassInformation' ] ) ? $ packageStateConfiguration [ 'packageClassInformation' ] : null ; $ package = $ this -> packageFactory -> create ( $ this -> packagesBasePath , $ packagePath , $ packageStateConfiguration [ 'packageKey' ] , $ composerName , $ packageStateConfiguration [ 'autoloadConfiguration' ] , $ packageClassInformation ) ; $ this -> packageKeys [ strtolower ( $ package -> getPackageKey ( ) ) ] = $ package -> getPackageKey ( ) ; $ this -> packages [ $ package -> getPackageKey ( ) ] = $ package ; }
Registers a package under the given composer name with the configuration.
This uses the PackageFactory to create the Package instance and sets it
to all relevant data arrays.

@param string $composerName
@param array $packageStateConfiguration
@return void
Registers a package under the given composer name with the configuration . This uses the PackageFactory to create the Package instance and sets it to all relevant data arrays .