Add the possibility to provide custom middlewares to the CommandBus/QueryBus in CqrsBootloader:
public function initMessageBus(HandlersLocatorInterface $locator): MessageBusInterface
{
return new MessageBus([
new HandleMessageMiddleware(
$locator
),
]);
}
Add the possibility to provide custom middlewares to the CommandBus/QueryBus in CqrsBootloader: