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 `null`
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 `null`
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
+17-80Lines changed: 17 additions & 80 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,35 +640,6 @@ 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.');
668
-
}
669
-
}
670
-
}
671
-
672
-
$v['session'] += [
673
-
'cookie_samesite' => null,
674
-
'handler_id' => 'session.handler.native_file',
675
-
'save_path' => '%kernel.cache_dir%/sessions',
676
-
];
677
-
678
-
return$v;
679
-
})
680
-
->end()
681
643
->children()
682
644
->arrayNode('session')
683
645
->info('session configuration')
@@ -698,14 +660,14 @@ private function addSessionSection(ArrayNodeDefinition $rootNode): void
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
-
return$v;
1027
-
})
1028
-
->end()
1029
991
->children()
1030
992
->arrayNode('validation')
1031
993
->info('validation configuration')
@@ -1040,7 +1002,7 @@ private function addValidationSection(ArrayNodeDefinition $rootNode, callable $e
if (!\array_key_exists('log', $v['php_errors'])) {
1296
-
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.');
1297
-
1298
-
$v['php_errors']['log'] = $this->debug;
1299
-
}
1300
-
1301
-
return$v;
1302
-
})
1303
-
->end()
1304
1255
->children()
1305
1256
->arrayNode('php_errors')
1306
1257
->info('PHP errors handling configuration')
@@ -1310,6 +1261,7 @@ private function addPhpErrorsSection(ArrayNodeDefinition $rootNode): void
1310
1261
->info('Use the application logger instead of the PHP logger for logging PHP errors.')
1311
1262
->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.')
1312
1263
->treatNullLike($this->debug)
1264
+
->defaultTrue()
1313
1265
->beforeNormalization()
1314
1266
->ifArray()
1315
1267
->then(function (array$v): array {
@@ -2322,23 +2274,6 @@ private function addRateLimiterSection(ArrayNodeDefinition $rootNode, callable $
if (!\array_key_exists('default_uuid_version', $v['uid'])) {
2329
-
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.');
2330
-
}
2331
-
2332
-
if (!\array_key_exists('time_based_uuid_version', $v['uid'])) {
2333
-
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