Skip to content

Commit

Permalink
[5.x] Allow bind of ImageGenerator by removing last new call (#10775)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuifdesign authored Sep 6, 2024
1 parent 03ee12b commit e139e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/GlideController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit e139e0d

Please sign in to comment.