Commit 5ac68fa1 authored by Nicolas Widart's avatar Nicolas Widart

Injecting the config class

parent 90c1ec40
......@@ -65,7 +65,7 @@ class MediaServiceProvider extends ServiceProvider
{
$this->app->bindShared('command.media.refresh', function($app) {
$thumbnailManager = new ThumbnailsManager($app['config'], $app['modules']);
$imagy = new Imagy(new InterventionFactory, $thumbnailManager);
$imagy = new Imagy(new InterventionFactory, $thumbnailManager, $app['config']);
return new RefreshThumbnailCommand($imagy, $app['Modules\Media\Repositories\FileRepository']);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment