public static function guessConfigurationEntry(PackageInterface $package, $config_entry)
    {
        if (empty($config_entry)) {
            return array();
        }
        $extra = $package->getExtra();
        return isset($extra[$config_entry]) ? $extra[$config_entry] : Config::get($config_entry);
    }
public static function guessConfigurationEntry(PackageInterface $package, $config_entry)
    {
        if (empty($config_entry)) {
            return array();
        }
        $extra = $package->getExtra();
        return isset($extra[$config_entry]) ? $extra[$config_entry] : Config::get($config_entry);
    }
public static function guessConfigurationEntry ( PackageInterface $ package , $ config_entry ) { if ( empty ( $ config_entry ) ) { return array ( ) ; } $ extra = $ package -> getExtra ( ) ; return isset ( $ extra [ $ config_entry ] ) ? $ extra [ $ config_entry ] : Config :: get ( $ config_entry ) ; }
Search a configuration value in a package's config or the global config if so

@param \Composer\Package\PackageInterface $package
@param string $config_entry
@return string
Search a configuration value in a package s config or the global config if so