コード例 #1
0
ファイル: SimpleMQ.php プロジェクト: graphaware/php-simplemq
 /**
  * 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();
     }
 }
コード例 #2
0
 private function assertConsumerExist($consumer)
 {
     return $this->assertInstanceOf('GraphAware\\SimpleMQ\\Definition\\Consumer', $this->manager->getConsumer($consumer));
 }