|
@@ -370,7 +370,8 @@ abstract class RESTController extends VoryxController
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Corro el comando para crear el device por AMQP
|
|
|
+ * Se ejecuta el comando amqp:remote por AMQP
|
|
|
+ *
|
|
|
* @global kernel $kernel
|
|
|
*
|
|
|
* @param string $name
|
|
@@ -381,10 +382,8 @@ abstract class RESTController extends VoryxController
|
|
|
public function runCommand($name, $cmd_args = array())
|
|
|
{
|
|
|
$kernel = $this->get('kernel');
|
|
|
-
|
|
|
$application = new Application($kernel);
|
|
|
$application->setAutoExit(false);
|
|
|
-
|
|
|
$args = [
|
|
|
'',
|
|
|
'amqp:remote',
|
|
@@ -394,10 +393,9 @@ abstract class RESTController extends VoryxController
|
|
|
foreach ($cmd_args as $cmd_arg) {
|
|
|
$args[] = "--args={$cmd_arg}";
|
|
|
}
|
|
|
- $input = new ArgvInput($args);
|
|
|
|
|
|
+ $input = new ArgvInput($args);
|
|
|
$output = new BufferedOutput();
|
|
|
-
|
|
|
$application->run($input, $output);
|
|
|
|
|
|
return $output->fetch();
|