Преглед на файлове

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

Luciano Andrade преди 7 години
родител
ревизия
aca26ebb87
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  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];
                 }
             }