create filesystem abstraction

This commit is contained in:
Yisroel Baum 2026-06-26 08:26:11 +03:00
parent be2c51bfb7
commit d59d444952
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
14 changed files with 44 additions and 64 deletions

View 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;
}