public function getPackageKeyFromComposerName($composerName)
    {
        if ($this->composerNameToPackageKeyMap === []) {
            foreach ($this->packageStatesConfiguration['packages'] as $packageStateConfiguration) {
                $this->composerNameToPackageKeyMap[$packageStateConfiguration['composerName']] = $packageStateConfiguration['packageKey'];
            }
        }

        $lowercasedComposerName = strtolower($composerName);
        if (!isset($this->composerNameToPackageKeyMap[$lowercasedComposerName])) {
            throw new Exception\InvalidPackageStateException('Could not find package with composer name "' . $lowercasedComposerName . '" in PackageStates configuration.', 1352320649);
        }

        return $this->composerNameToPackageKeyMap[$lowercasedComposerName];
    }
public function getPackageKeyFromComposerName($composerName)
    {
        if ($this->composerNameToPackageKeyMap === []) {
            foreach ($this->packageStatesConfiguration['packages'] as $packageStateConfiguration) {
                $this->composerNameToPackageKeyMap[$packageStateConfiguration['composerName']] = $packageStateConfiguration['packageKey'];
            }
        }

        $lowercasedComposerName = strtolower($composerName);
        if (!isset($this->composerNameToPackageKeyMap[$lowercasedComposerName])) {
            throw new Exception\InvalidPackageStateException('Could not find package with composer name "' . $lowercasedComposerName . '" in PackageStates configuration.', 1352320649);
        }

        return $this->composerNameToPackageKeyMap[$lowercasedComposerName];
    }
public function getPackageKeyFromComposerName ( $ composerName ) { if ( $ this -> composerNameToPackageKeyMap === [ ] ) { foreach ( $ this -> packageStatesConfiguration [ 'packages' ] as $ packageStateConfiguration ) { $ this -> composerNameToPackageKeyMap [ $ packageStateConfiguration [ 'composerName' ] ] = $ packageStateConfiguration [ 'packageKey' ] ; } } $ lowercasedComposerName = strtolower ( $ composerName ) ; if ( ! isset ( $ this -> composerNameToPackageKeyMap [ $ lowercasedComposerName ] ) ) { throw new Exception \ InvalidPackageStateException ( 'Could not find package with composer name "' . $ lowercasedComposerName . '" in PackageStates configuration.' , 1352320649 ) ; } return $ this -> composerNameToPackageKeyMap [ $ lowercasedComposerName ] ; }
Resolves a Flow package key from a composer package name.

@param string $composerName
@return string
@throws Exception\InvalidPackageStateException
Resolves a Flow package key from a composer package name .