|
@@ -46,9 +46,9 @@ class CommandConsumer implements ConsumerInterface
|
|
|
|
|
|
$input = array('command' => $name,);
|
|
|
foreach ($args as $arg) {
|
|
|
- $pieces = explode(':', $arg);
|
|
|
- if (isset($pieces[0]) && isset($pieces[1])) {
|
|
|
- $input[$pieces[0]] = $pieces[1];
|
|
|
+ $pos = strpos($arg, ':');
|
|
|
+ if ($pos) {
|
|
|
+ $input[substr($arg, 0, $pos)] = substr($arg, $pos + 1);
|
|
|
}
|
|
|
}
|
|
|
|