From edaa40679c827d14a46dec75e12ae67f7428896d Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Thu, 17 Dec 2015 13:51:49 +0100 Subject: [PATCH] Fixing instantiation of RefreshThumbnailCommand --- Providers/MediaServiceProvider.php | 5 +---- changelog.yml | 3 +++ module.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Providers/MediaServiceProvider.php b/Providers/MediaServiceProvider.php index 8a4be279..6ba0aab8 100644 --- a/Providers/MediaServiceProvider.php +++ b/Providers/MediaServiceProvider.php @@ -69,10 +69,7 @@ private function registerCommands() private function registerRefreshCommand() { $this->app->bindShared('command.media.refresh', function ($app) { - $thumbnailManager = new ThumbnailsManager($app['config'], $app['modules']); - $imagy = new Imagy(new InterventionFactory(), $thumbnailManager); - - return new RefreshThumbnailCommand($imagy, $app['Modules\Media\Repositories\FileRepository']); + return new RefreshThumbnailCommand($app['Modules\Media\Repositories\FileRepository']); }); $this->commands('command.media.refresh'); diff --git a/changelog.yml b/changelog.yml index 1b867c70..624556ff 100644 --- a/changelog.yml +++ b/changelog.yml @@ -1,5 +1,8 @@ url: https://github.com/AsgardCms/Media versions: + "1.18.1": + changed: + - Fixing instantiation of the RefreshThumbnailCommand "1.18.0": changed: - Queue closures in the FileService has ben extracted to a queued job diff --git a/module.json b/module.json index 0fecf0b4..8f55b1ca 100644 --- a/module.json +++ b/module.json @@ -3,7 +3,7 @@ "alias": "media", "description": "A media library, used throughout the CMS.", "keywords": [], - "version": "1.18.0", + "version": "1.18.1", "active": 1, "order": 1, "providers": [