[DX] bin/console debug:container --tag serializer.normalizer not sorted by priority even though it's very relevent #45396
Labels
Bug
DX
DX = Developer eXperience (anything that improves the experience of using Symfony)
Good first issue
Ideal for your first contribution! (some Symfony experience may be required)
Status: Needs Review
Symfony version(s) affected
5.4
Description
When debugging the serializer, the order of normalizers is very important. The configuration takes the
priority
attribute into account when injecting them.But, the priority is not used to sort the debug info here, meaning you can't read the list top to bottom and understand the normalizers order used. This is a DX bug.
How to reproduce
Run
Possible Solution
Sort the
--tags
list bypriority
by default. Not sure if only for specific tags, but it should reflect the order the container will find the services in.Additional Context
No response
The text was updated successfully, but these errors were encountered: