@@ -2016,11 +2016,16 @@ You can configure your handler by passing options to the attribute::
2016
2016
2017
2017
Possible options to configure with the attribute are:
2018
2018
2019
- * ``bus ``
2020
- * ``fromTransport ``
2021
- * ``handles ``
2022
- * ``method ``
2023
- * ``priority ``
2019
+ ============================ ====================================================================================================
2020
+ Option Description
2021
+ ============================ ====================================================================================================
2022
+ ``bus `` Name of the bus from which the handler can receive messages, by default all buses.
2023
+ ``fromTransport `` Name of the transport from which the handler can receive messages, by default all transports.
2024
+ ``handles `` Type of messages (FQCN) that can be processed by the handler, only needed if can't be guessed by
2025
+ type-hint.
2026
+ ``method `` Name of the method that will process the message, only if the target is a class.
2027
+ ``priority `` Priority of the handler when multiple handlers can process the same message.
2028
+ ============================ ====================================================================================================
2024
2029
2025
2030
.. _messenger-handler-config :
2026
2031
@@ -2079,11 +2084,16 @@ by tagging the handler service with ``messenger.message_handler``
2079
2084
2080
2085
Possible options to configure with tags are:
2081
2086
2082
- * ``bus ``
2083
- * ``from_transport ``
2084
- * ``handles ``
2085
- * ``method ``
2086
- * ``priority ``
2087
+ ============================ ====================================================================================================
2088
+ Option Description
2089
+ ============================ ====================================================================================================
2090
+ ``bus `` Name of the bus from which the handler can receive messages, by default all buses.
2091
+ ``from_transport `` Name of the transport from which the handler can receive messages, by default all transports.
2092
+ ``handles `` Type of messages (FQCN) that can be processed by the handler, only needed if can't be guessed by
2093
+ type-hint.
2094
+ ``method `` Name of the method that will process the message.
2095
+ ``priority `` Priority of the handler when multiple handlers can process the same message.
2096
+ ============================ ====================================================================================================
2087
2097
2088
2098
.. _handler-subscriber-options :
2089
2099
0 commit comments