Commit 98b6cbe8 authored by Nicolas Widart's avatar Nicolas Widart

Extracting variables

parent ba395d56
......@@ -24,7 +24,10 @@ class ImageServiceProvider extends ServiceProvider
);
$this->app['imagy'] = $this->app->share(function ($app) {
return new Imagy(new InterventionFactory, new ThumbnailsManager($app['config'], $app['modules']));
$factory = new InterventionFactory;
$thumbnailManager = new ThumbnailsManager($app['config'], $app['modules']);
return new Imagy($factory, $thumbnailManager);
});
$this->app->booting(function()
......
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