Skip to content

Commit

Permalink
[generate:plugin:queue] Add missing argument (#4122)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjuarez20 authored and enzolutions committed Jul 31, 2019
1 parent 9a2aac3 commit 3777045
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/services/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ services:
- { name: drupal.command }
console.generate_plugin_queue:
class: Drupal\Console\Command\Generate\PluginQueueWorkerCommand
arguments: ['@console.plugin_queue_generator','@console.validator','@console.string_converter','@console.chain_queue']
arguments: ['@console.extension_manager', '@console.plugin_queue_generator','@console.validator','@console.string_converter','@console.chain_queue']
tags:
- { name: drupal.command }
console.generate_post_update:
Expand Down
10 changes: 10 additions & 0 deletions src/Command/Generate/PluginQueueWorkerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Drupal\Console\Core\Command\Command;
use Drupal\Console\Core\Utils\ChainQueue;
use Drupal\Console\Extension\Manager;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Core\Generator\GeneratorInterface;
Expand All @@ -23,6 +24,11 @@ class PluginQueueWorkerCommand extends Command {
use ModuleTrait;
use ConfirmationTrait;

/**
* @var Manager
*/
protected $extensionManager;

/**
* Drupal\Console\Core\Generator\GeneratorInterface definition.
*
Expand Down Expand Up @@ -55,6 +61,8 @@ class PluginQueueWorkerCommand extends Command {
/**
* PluginQueueWorkerCommand constructor.
*
* @param Manager $extensionManager
* Extension Manager.
* @param \Drupal\Console\Core\Generator\GeneratorInterface $queue_generator
* Queue Generator.
* @param \Drupal\Console\Utils\Validator $validator
Expand All @@ -65,11 +73,13 @@ class PluginQueueWorkerCommand extends Command {
* Chain queue.
*/
public function __construct(
Manager $extensionManager,
GeneratorInterface $queue_generator,
Validator $validator,
StringConverter $stringConverter,
ChainQueue $chainQueue
) {
$this->extensionManager = $extensionManager;
$this->generator = $queue_generator;
$this->validator = $validator;
$this->stringConverter = $stringConverter;
Expand Down

0 comments on commit 3777045

Please sign in to comment.