Skip to content

Commit

Permalink
Fixing instantiation of RefreshThumbnailCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Dec 17, 2015
1 parent ac8f4af commit edaa406
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Providers/MediaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions changelog.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
url: https://github.com/AsgardCms/Media
versions:
"1.18.1":
changed:
- Fixing instantiation of the <code>RefreshThumbnailCommand</code>
"1.18.0":
changed:
- Queue closures in the <code>FileService</code> has ben extracted to a queued job
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit edaa406

Please sign in to comment.