@@ 21-26 (lines=6) @@ | ||
18 | 'Modules\Media\Image\Intervention\InterventionFactory' |
|
19 | ); |
|
20 | ||
21 | $this->app['imagy'] = $this->app->share(function ($app) { |
|
22 | $factory = new InterventionFactory(); |
|
23 | $thumbnailManager = new ThumbnailsManager($app['config'], $app['modules']); |
|
24 | ||
25 | return new Imagy($factory, $thumbnailManager, $app['config']); |
|
26 | }); |
|
27 | ||
28 | $this->app->booting(function () { |
|
29 | $loader = AliasLoader::getInstance(); |
@@ 73-78 (lines=6) @@ | ||
70 | */ |
|
71 | private function registerRefreshCommand() |
|
72 | { |
|
73 | $this->app->bindShared('command.media.refresh', function ($app) { |
|
74 | $thumbnailManager = new ThumbnailsManager($app['config'], $app['modules']); |
|
75 | $imagy = new Imagy(new InterventionFactory(), $thumbnailManager, $app['config']); |
|
76 | ||
77 | return new RefreshThumbnailCommand($imagy, $app['Modules\Media\Repositories\FileRepository']); |
|
78 | }); |
|
79 | ||
80 | $this->commands( |
|
81 | 'command.media.refresh' |