Skip to content

Commit 08be233

Browse files
committed
Remove the consume command tweaks as they are now done by the compiler pass in FWB
1 parent 37920e1 commit 08be233

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private function registerHandlers(ContainerBuilder $container, array $busIds)
189189
}
190190
}
191191

192-
if ($container->hasDefinition('console.command.messenger_debug')) {
192+
if ($container->hasDefinitgion('console.command.messenger_debug')) {
193193
$debugCommandMapping = $handlersByBusAndMessage;
194194
foreach ($busIds as $bus) {
195195
if (!isset($debugCommandMapping[$bus])) {
@@ -198,17 +198,6 @@ private function registerHandlers(ContainerBuilder $container, array $busIds)
198198
}
199199
$container->getDefinition('console.command.messenger_debug')->replaceArgument(0, $debugCommandMapping);
200200
}
201-
202-
if ($container->hasDefinition('console.command.messenger_consume_messages')) {
203-
$buses = array();
204-
foreach ($busIds as $busId) {
205-
$buses[$busId] = new Reference($busId);
206-
}
207-
$container
208-
->getDefinition('console.command.messenger_consume_messages')
209-
->replaceArgument(0, ServiceLocatorTagPass::register($container, $buses))
210-
->replaceArgument(4, $busIds);
211-
}
212201
}
213202

214203
private function guessHandledClasses(\ReflectionClass $handlerClass, string $serviceId): iterable

0 commit comments

Comments
 (0)