Exemplo n.º 1
0
 /**
  * @param string          $filename
  * @param resource|string $resource
  * @param string          $directory
  *
  * @return File
  *
  * @throws \Dvs\UUIDGenerator\Exception\UUIDGeneratorException
  */
 public function createWithUUID($filename, $resource, $directory)
 {
     $uuid = $this->UUIDGenerator->generateFromUrl($filename);
     $file = File::withUUID($uuid, $this->createDirs($uuid, $directory), $resource);
     $this->filesystem->writeFile($file);
     return $file;
 }