Exemplo n.º 1
0
 /**
  * Bootstraps the consumers in order to create queues, channels, exchanges and bindings before starting producers
  */
 public function bootstrapFabric()
 {
     foreach ($this->manager->getConsumers() as $consumer) {
         $consumer->run();
     }
 }
Exemplo n.º 2
0
 private function assertConsumerExist($consumer)
 {
     return $this->assertInstanceOf('GraphAware\\SimpleMQ\\Definition\\Consumer', $this->manager->getConsumer($consumer));
 }