-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[2.7] Fix deprecations on TwigBundle and FrameworkBundle semantic configurations #13349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | ~ |
License | MIT |
Doc PR | ~ |
7f8f81e
to
78f30c5
Compare
@@ -44,6 +44,12 @@ class FrameworkExtension extends Extension | |||
*/ | |||
public function load(array $configs, ContainerBuilder $container) | |||
{ | |||
// Check deprecation before the config is processed to ensure | |||
// the setting has been explicitly defined in a configuration file. | |||
if (isset($configs['csrf_protection']['field_name'])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will always be false, given that $configs
is the array of configs coming from the different files.
If you want to do this before the processing, put it in the beforeNormalization
of the node in the Configuration class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you're right. I forgot $configs
is a multidimensional array.
bb318b5
to
ecb240a
Compare
Squashed! Should be green in a few minutes. |
@hhamon Almost there... but not quite: https://travis-ci.org/symfony/symfony/jobs/46471343#L1742 |
…les to not use deprecated config keys anymore.
ecb240a
to
8d60396
Compare
@fabpot looks good except on 5.3 due to the Process component. Can you please run |
Thank you @hhamon. |
… semantic configurations (hhamon) This PR was merged into the 2.7 branch. Discussion ---------- [2.7] Fix deprecations on TwigBundle and FrameworkBundle semantic configurations | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ Commits ------- 8d60396 [FrameworkBundle|TwigBundle] update functional tests configuration files to not use deprecated config keys anymore.