Jelajahi Sumber

Merge branch 'master' of ssh://200.50.168.30:222/VendorSoftwareFlowdat3/WorkflowBundle

Maximiliano Schvindt 8 tahun lalu
induk
melakukan
c42ebe4250

+ 2 - 2
EventListener/DoctrineEventSubscriber.php

@@ -20,10 +20,10 @@ class DoctrineEventSubscriber implements EventSubscriber
     /**
      * @param ContainerInterface $serviceContainer
      */    
-    public function __construct(ContainerInterface $serviceContainer)
+    public function __construct(ProducerService $producerService)
     {
         /* @var $this->producerService ProducerService */
-        $this->producerService = $serviceContainer->get('workflow.producer_service');
+        $this->producerService = $producerService;
     }
 
     /**

+ 0 - 2
Resources/config/rabbit_mq/config.yml

@@ -30,5 +30,3 @@ old_sound_rabbit_mq:
             exchange_options: {name: 'send', type: direct}
             queue_options:    {name: 'send'}
             callback:         flowdat_tasklogger_service # sf service id
-            idle_timeout:           60
-            idle_timeout_exit_code: 0

+ 1 - 1
Resources/config/services.yml

@@ -27,7 +27,7 @@ services:
             
     workflow.doctrine_event.subscriber:
         class: WorkflowBundle\EventListener\DoctrineEventSubscriber
-        arguments: ['@service_container']
+        arguments: ['@workflow.producer_service']
         tags:
             - { name: doctrine.event_subscriber, connection: default }
     workflow.event.subscriber:

+ 1 - 0
Services/TaskLoggerService.php

@@ -30,6 +30,7 @@ class TaskLoggerService implements ConsumerInterface
                         
             $filename = $this->createTaskLoggerCmdFile($taskloggerId, $content);
             $output = $this->runProcess($filename);
+		var_export($output);
 
             return true;
         }