Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iGrog opened this issue Sep 28, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@iGrog
Copy link

iGrog commented Sep 28, 2023

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
            ),
        ]);
    }
@butschster butschster self-assigned this Sep 30, 2023
@butschster butschster added the enhancement New feature or request label Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants