8000 Add the method in the hash and prefix it · symfony/symfony@908fe56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 908fe56

Browse files
committed
Add the method in the hash and prefix it
1 parent 06f1eae commit 908fe56

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
@@ -107,7 +107,7 @@ private function registerHandlers(ContainerBuilder $container)
107107
if ('__invoke' !== $method) {
108108
$wrapperDefinition = (new Definition(MethodOnObjectHandler::class))->setArguments(array(new Reference($serviceId), $method));
109109

110-
$definitions[$serviceId = hash('sha1', $messageClass.':'.$messagePriority.':'.$serviceId)] = $wrapperDefinition;
110+
$definitions[$serviceId = 'messenger.method_on_object_handler.'.ContainerBuilder::hash($messageClass.':'.$messagePriority.':'.$serviceId.':'.$method)] = $wrapperDefinition;
111111
}
112112

113113
$handlersByMessage[$messageClass][$messagePriority][] = new Reference($serviceId);

0 commit comments

Comments
 (0)
0