8000 [2.7] Fix deprecations on TwigBundle and FrameworkBundle semantic configurations by hhamon · Pull Request #13349 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[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

Merged
merged 1 commit into from
Jan 9, 2015

Conversation

hhamon
Copy link
Contributor
@hhamon hhamon commented Jan 9, 2015
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets ~
License MIT
Doc PR ~

@@ -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'])) {
Copy link
Member

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

Copy link
Contributor Author

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.

@hhamon hhamon force-pushed the core-bundles-configuration branch 2 times, most recently from bb318b5 to ecb240a Compare January 9, 2015 17:39
@hhamon
Copy link
Contributor Author
hhamon commented Jan 9, 2015

Squashed! Should be green in a few minutes.

@fabpot
Copy link
Member
fabpot commented Jan 9, 2015

@hhamon Almost there... but not quite: https://travis-ci.org/symfony/symfony/jobs/46471343#L1742

@hhamon hhamon changed the title [2.7] [WIP] Core bundles semantic configuration fix [2.7] Fix deprecations on TwigBundle and FrameworkBundle semantic configurations Jan 9, 2015
…les to not use deprecated config keys anymore.
@hhamon hhamon force-pushed the core-bundles-configuration branch from ecb240a to 8d60396 Compare January 9, 2015 18:19
@hhamon
Copy link
Contributor Author
hhamon commented Jan 9, 2015
8000

@fabpot looks good except on 5.3 due to the Process component. Can you please run 18025.1 again?

@fabpot
Copy link
Member
fabpot commented Jan 9, 2015

Thank you @hhamon.

@fabpot fabpot merged commit 8d60396 into symfony:2.7 Jan 9, 2015
fabpot added a commit that referenced this pull request Jan 9, 2015
… 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.
@hhamon hhamon deleted the core-bundles-configuration branch January 10, 2015 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0