Fix init for windows

This commit is contained in:
René Preuß
2021-07-24 13:23:58 +02:00
parent 26672908f1
commit c90ad43a3c
5 changed files with 59 additions and 26 deletions

View File

@@ -20,6 +20,7 @@ class EdgeStorageCache
/**
* @throws FilesystemException
* @throws LockException
*/
public function parse(string $path): array
{
@@ -28,8 +29,6 @@ class EdgeStorageCache
File::EMPTY_SHA256,
));
file_put_contents(base_path(sprintf('%s.bk', basename($this->filename))), $contents);
return $this->extract($contents);
}
@@ -39,8 +38,6 @@ class EdgeStorageCache
$contents = $this->hydrate($files, $local, $edge);
$checksum = strtoupper(hash('sha256', $contents));
file_put_contents(base_path(sprintf('%s', basename($this->filename))), $contents);
$promise = $this->edgeStorage->put(new LocalFile($filename, $checksum, $contents));
/** @var ResponseInterface $response */