Neos\Flow\Package\Package::getComposerManifest PHP Метод

getComposerManifest() публичный Метод

Returns contents of Composer manifest - or part there of.
public getComposerManifest ( string $key = null ) : array | mixed
$key string Optional. Only return the part of the manifest indexed by 'key'
Результат array | mixed
    public function getComposerManifest($key = null)
    {
        return ComposerUtility::getComposerManifest($this->packagePath, $key);
    }

Usage Example

 /**
  * @test
  * @expectedException \Neos\Flow\Composer\Exception\MissingPackageManifestException
  */
 public function throwExceptionWhenSpecifyingAPathWithMissingComposerManifest()
 {
     $packagePath = 'vfs://Packages/Some/Path/Some.Package/';
     mkdir($packagePath, 0777, true);
     $package = new Package('Some.Package', 'some/package', 'vfs://Packages/Some/Path/Some.Package/', []);
     $package->getComposerManifest();
 }