/** * 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(); } }
private function assertConsumerExist($consumer) { return $this->assertInstanceOf('GraphAware\\SimpleMQ\\Definition\\Consumer', $this->manager->getConsumer($consumer)); }