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: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
+13-87Lines changed: 13 additions & 87 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,38 +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']) && !\array_key_exists('handler_id', $v['save_path'])) {
664
-
trigger_deprecation('symfony/framework-bundle', '6.4', 'Not setting either "framework.session.handler_id" or "save_path" config options is deprecated; "handler_id" will default to null in 7.0 if "save_path" is not set and to "session.handler.native_file" otherwise.');
if ($v['validation']['enabled'] && !\array_key_exists('email_validation_mode', $v['validation'])) {
1019
-
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.');
1020
-
}
1021
-
1022
-
if (isset($v['enable_annotations'])) {
1023
-
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.');
1029
-
}
1030
-
}
1031
-
1032
-
return$v;
1033
-
})
1034
-
->end()
1035
986
->children()
1036
987
->arrayNode('validation')
1037
988
->info('validation configuration')
@@ -1047,7 +998,7 @@ private function addValidationSection(ArrayNodeDefinition $rootNode, callable $e
if (!\array_key_exists('log', $v['php_errors'])) {
1318
-
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.');
1319
-
1320
-
$v['php_errors']['log'] = $this->debug;
1321
-
}
1322
-
1323
-
return$v;
1324
-
})
1325
-
->end()
1326
1266
->children()
1327
1267
->arrayNode('php_errors')
1328
1268
->info('PHP errors handling configuration')
@@ -1332,6 +1272,7 @@ private function addPhpErrorsSection(ArrayNodeDefinition $rootNode): void
1332
1272
->info('Use the application logger instead of the PHP logger for logging PHP errors.')
1333
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.')
1334
1274
->treatNullLike($this->debug)
1275
+
->defaultTrue()
1335
1276
->beforeNormalization()
1336
1277
->ifArray()
1337
1278
->then(function (array$v): array {
@@ -2344,23 +2285,6 @@ private function addRateLimiterSection(ArrayNodeDefinition $rootNode, callable $
if (!\array_key_exists('default_uuid_version', $v['uid'])) {
2351
-
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.');
2352
-
}
2353
-
2354
-
if (!\array_key_exists('time_based_uuid_version', $v['uid'])) {
2355
-
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