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

[Messenger] Allow same middleware to be used multiple times with different arguments #37569

Merged
merged 1 commit into from Jul 23, 2020
Merged

[Messenger] Allow same middleware to be used multiple times with different arguments #37569

merged 1 commit into from Jul 23, 2020

Conversation

HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Jul 14, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #37568
License MIT
Doc PR -

Middleware service names now take into account arguments as well to allow the same middleware to be used multiple times with different arguments:

framework:
    messenger:
        buses:
            messenger.bus.default:
                middleware:
                    - doctrine_ping_connection: ['main']
                    - doctrine_ping_connection: ['logs']

@HypeMC HypeMC requested a review from sroze as a code owner Jul 14, 2020
@HypeMC HypeMC changed the base branch from master to 4.4 Jul 14, 2020
@HypeMC HypeMC changed the title Allow same middleware to be used multiple times with different arguments [Messenger] Allow same middleware to be used multiple times with different arguments Jul 14, 2020
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Jul 22, 2020
@nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jul 23, 2020

Thank you @HypeMC.

@nicolas-grekas nicolas-grekas merged commit 0d867bc into symfony:4.4 Jul 23, 2020
2 of 5 checks passed
@HypeMC HypeMC deleted the messenger-pass-middleware-fix branch Jul 23, 2020
This was referenced Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants