Feat: Updating FIle Services, Updating Order Views to list product extra options

This commit is contained in:
2026-09-25 10:08:57 +03:00
parent 2b8fe5764c
commit 6025ea4304
10 changed files with 332 additions and 13 deletions
+9 -1
View File
@@ -32,7 +32,15 @@ interface FileAdapterInterface
public function delete(string $path): void;
/**
* Streams the file at $path straight to the browser.
* Streams the file at $path straight to the browser, inline (the
* browser renders/previews it directly rather than prompting to save).
*/
public function retrieve(string $path, ?string $name = null): StreamedResponse;
/**
* Same bytes as retrieve(), but as a forced attachment — the browser
* always prompts to save, even for a type it could otherwise preview
* (an image inline in a new tab).
*/
public function download(string $path, ?string $name = null): StreamedResponse;
}