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": [