From e139e0d3e8429269e2d0c0c0ba8ba444c7562583 Mon Sep 17 00:00:00 2001 From: Wuif <5678318+wuifdesign@users.noreply.github.com> Date: Fri, 6 Sep 2024 18:33:11 +0200 Subject: [PATCH] [5.x] Allow bind of ImageGenerator by removing last `new` call (#10775) --- src/Http/Controllers/GlideController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Controllers/GlideController.php b/src/Http/Controllers/GlideController.php index 902663862f..88ec39e24d 100644 --- a/src/Http/Controllers/GlideController.php +++ b/src/Http/Controllers/GlideController.php @@ -35,11 +35,11 @@ class GlideController extends Controller /** * GlideController constructor. */ - public function __construct(Server $server, Request $request) + public function __construct(Server $server, Request $request, ImageGenerator $generator) { $this->server = $server; $this->request = $request; - $this->generator = new ImageGenerator($server); + $this->generator = $generator; } /**