getComposerManifest() public method

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'
return array | mixed
コード例 #1
0
 /**
  * @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();
 }