You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE-7.0.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -202,6 +202,15 @@ FrameworkBundle
202
202
* Remove the integration of Doctrine annotations, use native attributes instead
203
203
* Remove `EnableLoggerDebugModePass`, use argument `$debug` of HttpKernel's `Logger` instead
204
204
* Remove `AddDebugLogProcessorPass::configureLogger()`, use HttpKernel's `DebugLoggerConfigurator` instead
205
+
* Make the `framework.handle_all_throwables` config option default to `true`
206
+
* Make the `framework.php_errors.log` config option default to `true`
207
+
* Make the `framework.session.cookie_secure` config option default to `auto`
208
+
* Make the `framework.session.cookie_samesite` config option default to `lax`
209
+
* Make the `framework.session.save_path` config option default to `%kernel.cache_dir%/sessions` when `framework.session.handler_id` is set or `null` otherwise
210
+
* Make the `framework.session.handler_id` config option default to `session.handler.native_file` when `framework.session.save_path` is set or `null` otherwise
211
+
* Make the `framework.uid.default_uuid_version` config option default to `7`
212
+
* Make the `framework.uid.time_based_uuid_version` config option default to `7`
213
+
* Make the `framework.validation.email_validation_mode` config option default to `html5`
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,15 @@ CHANGELOG
14
14
* Remove the integration of Doctrine annotations, use native attributes instead
15
15
* Remove `EnableLoggerDebugModePass`, use argument `$debug` of HttpKernel's `Logger` instead
16
16
* Remove `AddDebugLogProcessorPass::configureLogger()`, use HttpKernel's `DebugLoggerConfigurator` instead
17
+
* Make the `framework.handle_all_throwables` config option default to `true`
18
+
* Make the `framework.php_errors.log` config option default to `true`
19
+
* Make the `framework.session.cookie_secure` config option default to `auto`
20
+
* Make the `framework.session.cookie_samesite` config option default to `lax`
21
+
* Make the `framework.session.save_path` config option default to `%kernel.cache_dir%/sessions` when `framework.session.handler_id` is set or `null` otherwise
22
+
* Make the `framework.session.handler_id` config option default to `session.handler.native_file` when `framework.session.save_path` is set or `null` otherwise
23
+
* Make the `framework.uid.default_uuid_version` config option default to `7`
24
+
* Make the `framework.uid.time_based_uuid_version` config option default to `7`
25
+
* Make the `framework.validation.email_validation_mode` config option default to `html5`
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
+13-91Lines changed: 13 additions & 91 deletions
Original file line number
Diff line number
Diff line change
@@ -82,15 +82,6 @@ public function getConfigTreeBuilder(): TreeBuilder
82
82
return$v;
83
83
})
84
84
->end()
85
-
->validate()
86
-
->always(function ($v) {
87
-
if (!isset($v['handle_all_throwables'])) {
88
-
trigger_deprecation('symfony/framework-bundle', '6.4', 'Not setting the "framework.handle_all_throwables" config option is deprecated. It will default to "true" in 7.0.');
89
-
}
90
-
91
-
return$v;
92
-
})
93
-
->end()
94
85
->fixXmlConfig('enabled_locale')
95
86
->children()
96
87
->scalarNode('secret')->end()
@@ -137,7 +128,7 @@ public function getConfigTreeBuilder(): TreeBuilder
137
128
->scalarNode('error_controller')
138
129
->defaultValue('error_controller')
139
130
->end()
140
-
->booleanNode('handle_all_throwables')->info('HttpKernel will handle all kinds of \Throwable')->end()
131
+
->booleanNode('handle_all_throwables')->info('HttpKernel will handle all kinds of \Throwable')->defaultTrue()->end()
141
132
->end()
142
133
;
143
134
@@ -649,42 +640,15 @@ private function addRouterSection(ArrayNodeDefinition $rootNode): void
if (!\array_key_exists('cookie_secure', $v['session'])) {
656
-
trigger_deprecation('symfony/framework-bundle', '6.4', 'Not setting the "framework.session.cookie_secure" config option is deprecated. It will default to "auto" in 7.0.');
657
-
}
658
-
659
-
if (!\array_key_exists('cookie_samesite', $v['session'])) {
660
-
trigger_deprecation('symfony/framework-bundle', '6.4', 'Not setting the "framework.session.cookie_samesite" config option is deprecated. It will default to "lax" in 7.0.');
661
-
}
662
-
663
-
if (!\array_key_exists('handler_id', $v['session'])) {
664
-
if (!\array_key_exists('save_path', $v['session'])) {
665
-
trigger_deprecation('symfony/framework-bundle', '6.4', 'Not setting the "framework.session.save_path" config option when the "framework.session.handler_id" config option is not set either is deprecated. Both options will default to "null" in 7.0.');
666
-
} else {
667
-
trigger_deprecation('symfony/framework-bundle', '6.4', 'Not setting the "framework.session.handler_id" config option is deprecated. It will default to "session.handler.native_file" when "framework.session.save_path" is set or "null" otherwise in 7.0.');
if ($v['validation']['enabled'] && !\array_key_exists('email_validation_mode', $v['validation'])) {
1023
-
trigger_deprecation('symfony/framework-bundle', '6.4', 'Not setting the "framework.validation.email_validation_mode" config option is deprecated. It will default to "html5" in 7.0.');
1024
-
}
1025
-
1026
-
if (isset($v['enable_annotations'])) {
1027
-
trigger_deprecation('symfony/framework-bundle', '6.4', 'Option "enable_annotations" at "framework.validation" is deprecated. Use the "enable_attributes" option instead.');
thrownewLogicException('The "enable_annotations" and "enable_attributes" options at path "framework.validation" must not be both set. Only the "enable_attributes" option must be used.');
1033
-
}
1034
-
}
1035
-
1036
-
return$v;
1037
-
})
1038
-
->end()
1039
986
->children()
1040
987
->arrayNode('validation')
1041
988
->info('validation configuration')
@@ -1051,7 +998,7 @@ private function addValidationSection(ArrayNodeDefinition $rootNode, callable $e
if (!\array_key_exists('log', $v['php_errors'])) {
1322
-
trigger_deprecation('symfony/framework-bundle', '6.4', 'Not setting the "framework.php_errors.log" config option is deprecated. It will default to "true" in 7.0.');
1323
-
1324
-
$v['php_errors']['log'] = $this->debug;
1325
-
}
1326
-
1327
-
return$v;
1328
-
})
1329
-
->end()
1330
1266
->children()
1331
1267
->arrayNode('php_errors')
1332
1268
->info('PHP errors handling configuration')
@@ -1336,6 +1272,7 @@ private function addPhpErrorsSection(ArrayNodeDefinition $rootNode): void
1336
1272
->info('Use the application logger instead of the PHP logger for logging PHP errors.')
1337
1273
->example('"true" to use the default configuration: log all errors. "false" to disable. An integer bit field of E_* constants, or an array mapping E_* constants to log levels.')
1338
1274
->treatNullLike($this->debug)
1275
+
->defaultTrue()
1339
1276
->beforeNormalization()
1340
1277
->ifArray()
1341
1278
->then(function (array$v): array {
@@ -2348,23 +2285,6 @@ private function addRateLimiterSection(ArrayNodeDefinition $rootNode, callable $
if (!\array_key_exists('default_uuid_version', $v['uid'])) {
2355
-
trigger_deprecation('symfony/framework-bundle', '6.4', 'Not setting the "framework.uid.default_uuid_version" config option is deprecated. It will default to "7" in 7.0.');
2356
-
}
2357
-
2358
-
if (!\array_key_exists('time_based_uuid_version', $v['uid'])) {
2359
-
trigger_deprecation('symfony/framework-bundle', '6.4', 'Not setting the "framework.uid.time_based_uuid_version" config option is deprecated. It will default to "7" in 7.0.');
0 commit comments