From 9ddabe736f784f70805caa0af91fd387c9eef8bc Mon Sep 17 00:00:00 2001 From: "Ralph J. Smit" <59207045+ralphjsmit@users.noreply.github.com> Date: Sat, 13 Apr 2024 16:41:22 +0200 Subject: [PATCH] chore: upgrade to league/symfony-glide --- composer.json | 2 +- src/Http/Controllers/GlideController.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index ca69fd5..d6e355e 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "illuminate/http": "^10.29|^11.0", "illuminate/support": "^10.29|^11.0", "laravel/framework": "^10.29|^11.0", - "league/glide-laravel": "^1.0", + "league/glide-symfony": "^2.0", "spatie/laravel-package-tools": "^1.14.0" }, "require-dev": { diff --git a/src/Http/Controllers/GlideController.php b/src/Http/Controllers/GlideController.php index 0688398..4b2b92a 100644 --- a/src/Http/Controllers/GlideController.php +++ b/src/Http/Controllers/GlideController.php @@ -6,7 +6,7 @@ use Illuminate\Filesystem\Filesystem; use Illuminate\Http\Request; use League\Glide\Filesystem\FileNotFoundException; -use League\Glide\Responses\LaravelResponseFactory; +use League\Glide\Responses\SymfonyResponseFactory; use League\Glide\ServerFactory; use Symfony\Component\HttpFoundation\StreamedResponse; @@ -15,7 +15,7 @@ class GlideController public function __invoke(Request $request, Application $application, Filesystem $filesystem, string $source): StreamedResponse { $server = ServerFactory::create([ - 'response' => new LaravelResponseFactory($request), + 'response' => new SymfonyResponseFactory($request), 'source' => glide()->getSourcePath(), 'cache' => glide()->getCachePath(), 'base_url' => '',