Skip to content

Commit

Permalink
chore: upgrade to league/symfony-glide
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit committed Apr 13, 2024
1 parent e9d4406 commit 9ddabe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/GlideController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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' => '',
Expand Down

0 comments on commit 9ddabe7

Please sign in to comment.