소스 검색

faltaba una llamada

Luciano Andrade 7 년 전
부모
커밋
77f0236374
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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);
         }
     }