Sfoglia il codice sorgente

Blank lines deleted

Guillermo Espinoza 6 anni fa
parent
commit
99d5825907
1 ha cambiato i file con 3 aggiunte e 5 eliminazioni
  1. 3 5
      Controller/RESTController.php

+ 3 - 5
Controller/RESTController.php

@@ -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();