Skip to content

[FrameworkBundle] Fix argument not provided to add_bus_name_stamp_middleware#60780

Merged
nicolas-grekas merged 1 commit intosymfony:6.4from
maxbaldanza:bus-name-stamp-middleware
Jun 19, 2025
Merged

[FrameworkBundle] Fix argument not provided to add_bus_name_stamp_middleware#60780
nicolas-grekas merged 1 commit intosymfony:6.4from
maxbaldanza:bus-name-stamp-middleware

Conversation

@maxbaldanza
Copy link
Copy Markdown
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
Copy Markdown
Member

Thank you @maxbaldanza.

@nicolas-grekas nicolas-grekas merged commit 92f7862 into symfony:6.4 Jun 19, 2025
10 of 11 checks passed
This was referenced Jun 28, 2025
@maxbaldanza maxbaldanza deleted the bus-name-stamp-middleware branch September 17, 2025 20:05
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