Skip to content

Commit 32a73b0

Browse files
committed
minor #14430 [Messenger] Routing & Inheritance (sylfabre)
This PR was submitted for the 5.x branch but it was squashed and merged into the 4.4 branch instead. Discussion ---------- [Messenger] Routing & Inheritance This PR details how Messenger deals with messages and inheritance. We were discussing with my colleagues and had to do a quick POC to find out as it is not documented, and we had some doubt about it. Commits ------- f5ee472 [Messenger] Routing & Inheritance
2 parents 78b30bb + f5ee472 commit 32a73b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

messenger.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,13 @@ to multiple transports:
314314
],
315315
]);
316316
317+
.. note::
318+
319+
If you configure routing for both a child and parent class, but rules
320+
are used. E.g. if you have an ``SmsNotification`` object that extends
321+
from ``Notification``, both the routing for ``Notification`` and
322+
``SmsNotification`` will be used.
323+
317324
Doctrine Entities in Messages
318325
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
319326

0 commit comments

Comments
 (0)