} $container->
getDefinition('console.command.messenger_debug'
)->
replaceArgument(0,
$debugCommandMapping);
} } private function guessHandledClasses(\ReflectionClass
$handlerClass, string
$serviceId, string
$methodName): iterable
{ if ($handlerClass->
implementsInterface(MessageSubscriberInterface::
class)) { trigger_deprecation('symfony/messenger', '6.2', 'Implementing "%s" is deprecated, use the "%s" attribute instead.', MessageSubscriberInterface::
class, AsMessageHandler::
class);
return $handlerClass->
getName()::
getHandledMessages();
} if ($handlerClass->
implementsInterface(MessageHandlerInterface::
class)) { trigger_deprecation('symfony/messenger', '6.2', 'Implementing "%s" is deprecated, use the "%s" attribute instead.', MessageHandlerInterface::
class, AsMessageHandler::
class);
} try { $method =
$handlerClass->
getMethod($methodName);
} catch (\ReflectionException
) { throw new RuntimeException(sprintf('Invalid handler service "%s": class "%s" must have an "%s()" method.',
$serviceId,
$handlerClass->
getName(),
$methodName));
}