Skip to content

Conversation

HypeMC
Copy link
Member

@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 July 14, 2020 06:29
@HypeMC HypeMC changed the base branch from master to 4.4 July 14, 2020 06:29
@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

Thank you @HypeMC.

@nicolas-grekas nicolas-grekas merged commit 0d867bc into symfony:4.4 Jul 23, 2020
@HypeMC HypeMC deleted the messenger-pass-middleware-fix branch July 23, 2020 09:59
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.

Problem with defining Doctrine middleware for different connections in Messenger
5 participants