Closed alterphp closed 6 years ago
Just to be clear, it's failed only when you have a few config files of oauth2-client-bundle? If you move all the configuration to one config file e.g. config/packages/knpu_oauth2_client.yaml
it works, right?
Exactly.
I use a third party bundle that "pushes" a client to the knpu_oauth2_client
config entry. But it does not work with an existing client defined on main level (the client key becomes numeric).
Good bug report :). See #75
Fixed and tagged: https://github.com/knpuniversity/oauth2-client-bundle/releases/tag/1.16.1
If you have any issue @alterphp, please let us know!
Cheers!
It works !
Thanka a lot for the fast fix !
I have the following configuration in the main config file (config/packages/knpu_oauth2_client.yaml) :
And, in another config file (config/packages/another_vendor.yaml) :
After configuration being processed, the clients are badly indexed :
This is due to the way prototype arrays are merged in the Symfony Config component (from PrototpyedArrayNode class) :
See the first line in the
foreach
statement :And so the right site is appended to the left side with no key preservation...