GatherProducer.php 328 B

1234567891011121314151617
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Amqp\Producer;
  4. use Hyperf\Amqp\Annotation\Producer;
  5. use Hyperf\Amqp\Message\ProducerMessage;
  6. #[Producer(exchange: 'gather', routingKey: 'gather')]
  7. class GatherProducer extends ProducerMessage
  8. {
  9. public function __construct($data)
  10. {
  11. $this->payload = $data;
  12. }
  13. }