Exemplo n.º 1
0
 /**
  * Saves a package file.
  *
  * The package file is saved to the same path that it was read from.
  *
  * @param PackageFile $packageFile The package file to save.
  *
  * @throws StorageException If the file cannot be written.
  */
 public function savePackageFile(PackageFile $packageFile)
 {
     $serialized = $this->serializer->serializePackageFile($packageFile);
     $this->storage->write($packageFile->getPath(), $serialized);
 }