Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] Fix argument not provided to add_bus_name_stamp_middleware #60780

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

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

maxbaldanza
Copy link
Contributor

The bus name only gets provided to add_bus_name_stamp_middleware if using the default middlewares meaning that if you want to define the middlewares yourself then you need to define this service or you get an error:

Too few arguments to function Symfony\Component\Messenger\Middleware\AddBusNameStampMiddleware::__construct(), 0 passed

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues
License MIT

…ddleware`

The bus name only gets provided to `add_bus_name_stamp_middleware` if
using the default middlewares meaning that if you want to define the
middlewares yourself then you need to define this service or you get
an error:

`Too few arguments to function Symfony\Component\Messenger\Middleware\AddBusNameStampMiddleware::__construct(), 0 passed`
@maxbaldanza maxbaldanza force-pushed the bus-name-stamp-middleware branch from 7625e9b to 12b17e8 Compare June 16, 2025 08:41
@nicolas-grekas
Copy link
Member

Thank you @maxbaldanza.

@nicolas-grekas nicolas-grekas merged commit 92f7862 into symfony:6.4 Jun 19, 2025
10 of 11 checks passed
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.

3 participants