Skip to content

Add the possibility to provide custom middlewares to the CommandBus/QueryBus #14

@iGrog

Description

@iGrog

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
            ),
        ]);
    }

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions