public static function fromFilePath(RootPackage $root, string $filePath) : self
 {
     return new self($root, JsonObject::fromFilePath($filePath));
 }
Example #2
0
 public static function createFromPath(string $dirPath) : self
 {
     return new static($dirPath, JsonObject::fromFilePath($dirPath . DIRECTORY_SEPARATOR . 'composer.json'));
 }