$className =
$this->
getServiceClass($container,
$serviceId);
$r =
$container->
getReflectionClass($className);
if (null ===
$r) { throw new RuntimeException(sprintf('Invalid service "%s": class "%s" does not exist.',
$serviceId,
$className));
} if (isset($tag['handles'
])) { $handles =
isset($tag['method'
]) ?
[$tag['handles'
] =>
$tag['method'
]] :
[$tag['handles'
]];
} else { $handles =
$this->
guessHandledClasses($r,
$serviceId,
$tag['method'
] ?? '__invoke'
);
} $message = null;
$handlerBuses =
(array) ($tag['bus'
] ??
$busIds);
foreach ($handles as $message =>
$options) { $buses =
$handlerBuses;
if (\
is_int($message)) { if (\
is_string($options)) { $message =
$options;