Skip to content
Permalink
Browse files

[generate:plugin:queue] Add missing argument (#4122)

  • Loading branch information...
harold20 authored and enzolutions committed Jul 31, 2019
1 parent 9a2aac3 commit 377704521077ee7fbb757f0227f0270a62840bfb
Showing with 11 additions and 1 deletion.
  1. +1 −1 config/services/generate.yml
  2. +10 −0 src/Command/Generate/PluginQueueWorkerCommand.php
@@ -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:
@@ -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;
@@ -23,6 +24,11 @@ class PluginQueueWorkerCommand extends Command {
use ModuleTrait;
use ConfirmationTrait;
/**
* @var Manager
*/
protected $extensionManager;
/**
* Drupal\Console\Core\Generator\GeneratorInterface definition.
*
@@ -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
@@ -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;

0 comments on commit 3777045

Please sign in to comment.
You can’t perform that action at this time.