Please sign in to comment.
bug #32380 [Messenger] fix broken key normalization (Tobion)
This PR was merged into the 4.3 branch. Discussion ---------- [Messenger] fix broken key normalization | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | | License | MIT | Doc PR | Disable broken key normalization in messenger config. If you tried to use `-` in a transport/bus it didn't work and you get a cryptic error (#31613) ``` framework: messenger: transports: my-bus: '...' routing: Acme\MyMessage: my-bus ``` The default behavior of normalizing keys is really annoying and a waste of time in most cases. I've measured `\Symfony\Component\Config\Definition\ArrayNode::preNormalize` in a project and it takes 4 ms. As an idea, we could disabling normalizing keys automatically when you call `useAttributeAsKey` because the value is then user-provided and shouldn't be modified (in contrast to children properties of an arrayNode which should get normalized for xml support). Commits ------- 9931b3e [Messenger] fix broken key normalization
- Loading branch information...
Showing with 3 additions and 0 deletions.