create filesystem abstraction
This commit is contained in:
parent
be2c51bfb7
commit
d59d444952
14 changed files with 44 additions and 64 deletions
14
backend/app/Shared/Files/Filesystem.php
Normal file
14
backend/app/Shared/Files/Filesystem.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace App\Shared\Files;
|
||||
|
||||
interface Filesystem
|
||||
{
|
||||
public function upload(FileToUpload $file, string $folder): string;
|
||||
|
||||
public function url(string $path): string;
|
||||
|
||||
public function delete(string $path): void;
|
||||
|
||||
public function read(string $path): ?string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue