public static function fromKind($kind) {
        $composerMap = self::getComposerMap();
        if (!array_key_exists($kind, $composerMap))
            throw new ComposerException("no composer found for \"$kind\"");
        $class = $composerMap[$kind];
        return new $class();
    }
public static function fromKind($kind) {
        $composerMap = self::getComposerMap();
        if (!array_key_exists($kind, $composerMap))
            throw new ComposerException("no composer found for \"$kind\"");
        $class = $composerMap[$kind];
        return new $class();
    }
public static function fromKind ( $ kind ) { $ composerMap = self :: getComposerMap ( ) ; if ( ! array_key_exists ( $ kind , $ composerMap ) ) throw new ComposerException ( "no composer found for \"$kind\"" ) ; $ class = $ composerMap [ $ kind ] ; return new $ class ( ) ; }
Creates a composer from a kind.
@param string $kind
@return Composer
Creates a composer from a kind .