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;
}
}