1234567891011121314151617 |
- <?php
- declare(strict_types=1);
- namespace App\Amqp\Producer;
- use Hyperf\Amqp\Annotation\Producer;
- use Hyperf\Amqp\Message\ProducerMessage;
- #[Producer(exchange: 'gather', routingKey: 'gather')]
- class GatherProducer extends ProducerMessage
- {
- public function __construct($data)
- {
- $this->payload = $data;
- }
- }
|