[Framework][debug:config] Allow to debug path with dot in key#64233
Open
Jibbarth wants to merge 1 commit into
Open
[Framework][debug:config] Allow to debug path with dot in key#64233Jibbarth wants to merge 1 commit into
Jibbarth wants to merge 1 commit into
Conversation
|
Hey! Thanks for your PR. You are targeting branch "8.1" but it seems your PR description refers to branch "8.1 - TODO change for 8.2 when available". Cheers! Carsonbot |
Jibbarth
commented
May 17, 2026
| private function getConfigForPath(array $config, string $path, string $alias): mixed | ||
| { | ||
| $steps = explode('.', $path); | ||
| preg_match_all('/\[([^\]]+)\]|[^.]+/', $path, $matches); |
61cda7b to
db59a7f
Compare
db59a7f to
d266f5c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allow to debug config path with dot in key.
When an arrayNode use attribute as key, we can have dots inside the key. It's happen a lot in sylius with twig_hooks :
As there is a lot of configuration here, it's quite difficult to find the data needed.
With that change, we can pass a key that contains dot within brackets: