Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 784 Bytes

readme.md

File metadata and controls

39 lines (31 loc) · 784 Bytes

RMQ-Flag

This package for handling RabbitMQ messages in the Flagstudio Services

  • add environment variables
###RABBITMQ
RABBITMQ_EXCHANGE_NAME=
RABBITMQ_EXCHANGE_TYPE=fanout
RABBITMQ_QUEUE=
RABBITMQ_HOST=
RABBITMQ_PORT=5672
RABBITMQ_USER=
RABBITMQ_PASSWORD=
RABBITMQ_VHOST=/
RABBITMQ_DSN=amqp://
  • export config file
php artisan vendor:publish --provider="Flagstudio\RmqFlag\Providers\RmqFlagServiceProvider" --tag="config"
  • add class which implements RmqMessageHandleExecutable interface for handling message by action value to rmq-flag.ations array
# /config/rmq-flag.php

return [
    #...
    'actions' => [
        # for example
        'update_users' => \App\Actions\Users\FromAuthUpdateUserAction::class,
    ]
    #...
];