Neos\Flow\Core\Migrations\Tools::readComposerManifest PHP Method

readComposerManifest() public static method

Read the package manifest from the composer.json file at $pathAndFileName
public static readComposerManifest ( string $pathAndFileName ) : array
$pathAndFileName string
return array
    public static function readComposerManifest($pathAndFileName)
    {
        if (file_exists($pathAndFileName)) {
            $json = file_get_contents($pathAndFileName);
            return json_decode($json, true);
        } else {
            return null;
        }
    }