-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Change default feature config to disabled #13703
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
Comments
👍 |
I like it a lot 👍 |
…zal) This PR was merged into the 3.0-dev branch. Discussion ---------- [FrameworkBundle] Update assets configuration tests | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Previously, assets where enabled if `templating` didn't contain asset configuration. This has been removed in #13666. Instead of enabling it back I propose to keep it disabled and update the tests instead, since we already discussed disabling all FrameworkBundle features by default for 3.0 (#13703). Commits ------- 5007b41 [Form] Replace use of bind() with submit() in a test. 494e300 [SecurityBundle] Enable assets in functional tests. 4c26875 [FrameworkBundle] Fix a default config test case and add a new one for enabling assets. b0f6a19 [FrameworkBundle] Remove a legacy test.
👍 |
I looked the FrameworkBundle configuration and I didn't see any components activated by default. Which one are you talking about? Not completely related, but sometimes |
It's true that the things that can be configured are disabled by default. But alot of stuff is loaded without being able to disable it:
And the inconsistency with # both behave the same for each config value luckily
framework:
form: false | true | null
session: false | true | null
framework:
form:
enabled :false # works
session:
enabled :false # does not work (Unrecognized option "enabled" under "framework.session")
|
Ok thank you for your answer I'll see if I can do something :-) |
…nset() for consistency (Ener-Getick) This PR was squashed before being merged into the 3.1-dev branch (closes #17690). Discussion ---------- [FrameworkBundle] Use canBeEnabled() instead of canBeUnset() for consistency | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #13703 | License | MIT I'm not sure if we should consider this as a bug fix or as a new feature. Commits ------- 39723c5 [FrameworkBundle] Use canBeEnabled() instead of canBeUnset() for consistency
…nset() for consistency (Ener-Getick) This PR was squashed before being merged into the 3.1-dev branch (closes #17690). Discussion ---------- [FrameworkBundle] Use canBeEnabled() instead of canBeUnset() for consistency | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony/symfony#13703 | License | MIT I'm not sure if we should consider this as a bug fix or as a new feature. Commits ------- 39723c5 [FrameworkBundle] Use canBeEnabled() instead of canBeUnset() for consistency
What about disabling all components by default in symfony 3.0.
I think it's really confusing that some things are enabled by default and others are disabled by default. This way it's really hard to configure a symfony where only the stuff you need is enabled because you have to figure out all the defaults first.
#13672 (comment)
The text was updated successfully, but these errors were encountered: