mirror of
https://github.com/bitinflow/bunny-cli.git
synced 2026-03-13 13:45:54 +00:00
Fix init for windows
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user