Neos\Flow\Composer\ComposerUtility::readComposerManifest PHP Method

readComposerManifest() protected static method

Read the content of composer.json in the given path
protected static readComposerManifest ( string $manifestPath ) : array
$manifestPath string
return array
    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;
    }