Commit f249284
committed
feature #45273 [Messenger] Allow AsMessageHandler attribute on methods (mjpvandenberg, fabpot)
This PR was merged into the 6.1 branch.
Discussion
----------
[Messenger] Allow AsMessageHandler attribute on methods
| Q | A
| ------------- | ---
| Branch? | 6.1
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | none
| License | MIT
| Doc PR | tbd
Similar to the `#[AsEventListener]` attribute, this PR allows for using the `#[AsMessageHandler]` attribute on methods.
Combining class-level and method-level usage inside a single class is supported, as shown by the adapted `MessengerPassTest::testTaggedMessageHandler` test.
Commits
-------
fc19ed5852 Fix deps
fe3d91247a [Messenger] Allow AsMessageHandler attribute on methods2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
626 | | - | |
| 626 | + | |
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | | - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
631 | 636 | | |
632 | 637 | | |
633 | 638 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments