create filesystem abstraction
This commit is contained in:
parent
be2c51bfb7
commit
d59d444952
14 changed files with 44 additions and 64 deletions
|
|
@ -17,7 +17,7 @@ use App\Element\UseCases\UpdateElement\UpdateElement;
|
|||
use App\Element\UseCases\UpdateElement\UpdateElementRequest;
|
||||
use App\Exceptions\BadRequestException;
|
||||
use App\Exceptions\NotFoundException;
|
||||
use App\Shared\Files\FileUploader;
|
||||
use App\Shared\Files\Filesystem;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
|
|
@ -32,7 +32,7 @@ class ElementController
|
|||
private ReorderChildElements $reorderChildElements,
|
||||
private UpdateElement $updateElement,
|
||||
private GetElementPdf $getElementPdf,
|
||||
private FileUploader $fileUploader,
|
||||
private Filesystem $filesystem,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ class ElementController
|
|||
}
|
||||
|
||||
if (str_starts_with($path, $folderPrefix)) {
|
||||
return $this->fileUploader->url($path);
|
||||
return $this->filesystem->url($path);
|
||||
}
|
||||
|
||||
return $path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue