-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
In the HandlersLocatorFactory class, there is code which will cause an exception in Symfony 7+:
$messageHandlerClasses = $this->reflectionService
->getAllImplementationClassNamesForInterface(MessageSubscriberInterface::class);
foreach ($messageHandlerClasses as $messageHandlerClass) {
foreach ($messageHandlerClass::getHandledMessages() as $messageName => $config) {
if (! \is_array($config)) {
throw new \InvalidArgumentException(
'different from doctrine, we (currently) need subscribers to always have an option array'
);
}
if (isset($config['bus']) && $config['bus'] !== $busName) {
continue;
}
$handlerDescriptors[$messageName][] = new HandlerDescriptor(
$this->objectManager->get($messageHandlerClass),
$config
);
}
}It can just be removed completely.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels