Kaynağa Gözat

Merge branch 'master' of ssh://gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/WorkflowBundle into workflow_update

Luciano Andrade 7 yıl önce
ebeveyn
işleme
aca26ebb87
1 değiştirilmiş dosya ile 2 ekleme ve 4 silme
  1. 2 4
      Services/CommandConsumer.php

+ 2 - 4
Services/CommandConsumer.php

@@ -9,7 +9,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 use Symfony\Component\Console\Input\ArrayInput;
 use Symfony\Component\Console\Output\BufferedOutput;
 
-class CommandConsumer
+class CommandConsumer implements ConsumerInterface
 {
 
     /**
@@ -48,9 +48,7 @@ class CommandConsumer
             foreach ($args as $arg) {
                 $pieces = explode(':', $arg);
                 if (isset($pieces[0]) && isset($pieces[1])) {
-                    $input["--{$pieces[0]}"] = $pieces[1];
-                } elseif (isset($pieces[0])) {
-                    $input[] = $pieces[0];
+                    $input[$pieces[0]] = $pieces[1];
                 }
             }