Explorar el Código

faltaba una llamada

Luciano Andrade hace 7 años
padre
commit
77f0236374
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      Services/ProducerService.php

+ 4 - 0
Services/ProducerService.php

@@ -78,6 +78,10 @@ class ProducerService
         $entityRepository = $entityManager->getRepository($entityClass);
         $entity = $entityRepository->find($entityId);
         if (in_array($entityClass, WorkFlowEntityClasses::getConstants())) {
+	    $routing_key = "";
+            if(getenv("AMQP_KEY") !== false){
+                $routing_key = getenv("AMQP_KEY");
+            }
             $this->publishMessage($action, $entity);
         }
     }