Skip to content

Commit

Permalink
Move GenerateThumbnailsCommand in app/config/console.yml
Browse files Browse the repository at this point in the history
Move GenerateThumbnailsCommand in app/config/console.yml

Moved from bin/console.
  • Loading branch information
jeroendesloovere committed Apr 4, 2018
1 parent 588c11a commit f59c90a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/config/console.yml
Expand Up @@ -3,3 +3,9 @@ services:
class: Console\Core\CacheClearCommand
tags:
- { name: console.command }
forkcms.console.thumbnails.generate:
class: Console\Thumbnails\GenerateThumbnailsCommand
arguments:
- "@forkcms.utility.thumbnails"
tags:
- { name: console.command }
1 change: 0 additions & 1 deletion bin/console
Expand Up @@ -42,7 +42,6 @@ $backend->initialize('Console');

$application = new Application($kernel);
$application->add(new \Console\Locale\ImportLocaleCommand());
$application->add(new \Console\Thumbnails\GenerateThumbnailsCommand($kernel->getContainer()->get('forkcms.utility.thumbnails')));
if ($kernel->getContainer()->get('fork.settings') instanceof ModulesSettings) {
$application->add(
new \Console\Locale\EnableLocaleCommand(
Expand Down

0 comments on commit f59c90a

Please sign in to comment.