소스 검색

FD3-223 AMQP Consumer

Guillermo Espinoza 7 년 전
부모
커밋
1dc7182ffb
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];
                 }
             }