thrownew\OutOfBoundsException('Package "'.$packageName.'" is not installed');
}
/**
* @param string $packageName
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
thrownew\OutOfBoundsException('Package "'.$packageName.'" is not installed');
}
/**
* @param string $packageName
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
thrownew\OutOfBoundsException('Package "'.$packageName.'" is not installed');
}
/**
* @param string $packageName
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
* Returns the raw installed.php data for custom implementations
*
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
@trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.',E_USER_DEPRECATED);
if(null===self::$installed){
// only require the installed.php file if this file is loaded from its dumped location,
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
if(substr(__DIR__,-8,1)!=='C'){
self::$installed=include__DIR__.'/installed.php';
}else{
self::$installed=array();
}
}
returnself::$installed;
}
/**
* Returns the raw data of all installed.php which are currently loaded for custom implementations
$issues[]='Your Composer dependencies require a PHP version ">= 5.2.0". You are running '.PHP_VERSION.'.';
}
if($issues){
if(!headers_sent()){
header('HTTP/1.1 500 Internal Server Error');
}
if(!ini_get('display_errors')){
if(PHP_SAPI==='cli'||PHP_SAPI==='phpdbg'){
fwrite(STDERR,'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.implode(PHP_EOL,$issues).PHP_EOL.PHP_EOL);
}elseif(!headers_sent()){
echo'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.str_replace('You are running '.PHP_VERSION.'.','',implode(PHP_EOL,$issues)).PHP_EOL.PHP_EOL;
}
}
trigger_error(
'Composer detected issues in your platform: '.implode(' ',$issues),