Skip to content

Commit

Permalink
bug #50277 [Messenger] Add IS_REPEATABLE flag to AsMessageHandler
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
nicolas-grekas committed May 12, 2023
2 parents 3cefdcb + 86609b6 commit 38f71b0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -16,7 +16,7 @@
*
* @author Alireza Mirsepassi <alirezamirsepassi@gmail.com>
*/
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
class AsMessageHandler
{
public function __construct(
Expand Down

0 comments on commit 38f71b0

Please sign in to comment.