|
@@ -97,12 +97,16 @@ class DeviceListener
|
|
|
$application = new Application($kernel);
|
|
|
$application->setAutoExit(false);
|
|
|
|
|
|
- $input = new ArgvInput(array(
|
|
|
+ $args = [
|
|
|
+ '',
|
|
|
'amqp:remote',
|
|
|
$name,
|
|
|
- '--args=' . implode(' --args=', $cmd_args),
|
|
|
'--route=' . getenv("AMQP_KEY"),
|
|
|
- ));
|
|
|
+ ];
|
|
|
+ foreach ($cmd_args as $cmd_arg) {
|
|
|
+ $args[] = '--args=' . $cmd_arg;
|
|
|
+ }
|
|
|
+ $input = new ArgvInput($args);
|
|
|
|
|
|
$output = new BufferedOutput();
|
|
|
|