Skip to content

Commit 38f71b0

Browse files
bug #50277 [Messenger] Add IS_REPEATABLE flag to AsMessageHandler attribute (adrianguenter)
This PR was merged into the 6.2 branch. Discussion ---------- [Messenger] Add `IS_REPEATABLE` flag to `AsMessageHandler` attribute | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #50267 | License | MIT | Doc PR | N/A Allows repeating the `AsMessageHandler` attribute to support the preexisting behavior of the now-deprecated `MessageSubscriberInterface`. Commits ------- 86609b6 [Messenger] Add `IS_REPEATABLE` flag to `AsMessageHandler` attribute
2 parents 3cefdcb + 86609b6 commit 38f71b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @author Alireza Mirsepassi <alirezamirsepassi@gmail.com>
1818
*/
19-
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
19+
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
2020
class AsMessageHandler
2121
{
2222
public function __construct(

0 commit comments

Comments
 (0)