8000 minor #26676 [Messenger] Uses the `messenger.message_handler` tag ins… · symfony/symfony@6806f66 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6806f66

Browse files
committed
minor #26676 [Messenger] Uses the messenger.message_handler tag instead of message.handler (sroze)
This PR was merged into the 4.1-dev branch. Discussion ---------- [Messenger] Uses the `messenger.message_handler` tag instead of `message.handler` | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no (technically, it's not even in 4.1) | Deprecations? | no | Tests pass? | yes | Fixed tickets | ø | License | MIT After a few days using it, it feels weird to have the `messenger.receiver` and `messenger.sender` tags while the one for message handlers is `message_handler`. I believe that for consistency, this would make sense to rename this tag `messenger.message_handler`. As we don't have tests for this pass yet (will be added in #26672) there is nothing else to change (but the documentation). Commits ------- bddebc4 Uses the `messenger.message_handler` tag instead of `message.handler`
2 parents 05b9f64 + bddebc4 commit 6806f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/DependencyInjection/MessengerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MessengerPass implements CompilerPassInterface
3131
private $messageHandlerResolverService;
3232
private $handlerTag;
3333

34-
public function __construct(string $messageBusService = 'message_bus', string $messageHandlerResolverService = 'messenger.handler_resolver', string $handlerTag = 'message_handler')
34+
public function __construct(string $messageBusService = 'message_bus', string $messageHandlerResolverService = 'messenger.handler_resolver', string $handlerTag = 'messenger.message_handler')
3535
{
3636
$this->messageBusService = $messageBusService;
3737
$this->messageHandlerResolverService = $messageHandlerResolverService;

0 commit comments

Comments
 (0)
0