Description
Description
Currently, the default message bus is injected into Symfony\Component\Webhook\Controller\WebhookController
, it would be beneficial if we could say which bus to use per webhook.
The alternative is to dispatch a message from the webhook consumer which is only used for that, the webhook-specific message handler is also required, making the webhook consumer basically pointless.
Example
framework:
webhook:
routing:
slack/event:
service: App\Provider\Slack\Webhook\SlackWebhookRequestParser
message_bus: realtime_priority # this
Note: I'm aware you can kind of do this by doing
framework:
messenger:
routing:
'Symfony\Component\RemoteEvent\Messenger\ConsumeRemoteEventMessage': realtime_priority
but that means every webhook even gets dispatched using this, while it would be beneficial to be able to do this per webhook, for example chat requests need to be close to realtime, other events might be informational only and can be processed with low priority.