protected static function readComposerManifest($manifestPath)
{
$manifestPathAndFilename = $manifestPath . 'composer.json';
if (isset(self::$composerManifestCache[$manifestPathAndFilename])) {
return self::$composerManifestCache[$manifestPathAndFilename];
}
if (!is_file($manifestPathAndFilename)) {
throw new Exception\MissingPackageManifestException(sprintf('No composer manifest file found at "%s".', $manifestPathAndFilename), 1349868540);
}
$json = file_get_contents($manifestPathAndFilename);
$composerManifest = json_decode($json, true);
self::$composerManifestCache[$manifestPathAndFilename] = $composerManifest;
return $composerManifest;
}