Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[FrameworkBundle] Remove config deprecations#51428
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -82,15 +82,6 @@ public function getConfigTreeBuilder(): TreeBuilder | ||
| return $v; | ||
| }) | ||
| ->end() | ||
| ->fixXmlConfig('enabled_locale') | ||
| ->children() | ||
| ->scalarNode('secret')->end() | ||
| @@ -137,7 +128,7 @@ public function getConfigTreeBuilder(): TreeBuilder | ||
| ->scalarNode('error_controller') | ||
| ->defaultValue('error_controller') | ||
| ->end() | ||
| ->booleanNode('handle_all_throwables')->info('HttpKernel will handle all kinds of \Throwable')->defaultTrue()->end() | ||
| ->end() | ||
| ; | ||
| @@ -649,38 +640,15 @@ private function addRouterSection(ArrayNodeDefinition $rootNode): void | ||
| private function addSessionSection(ArrayNodeDefinition $rootNode): void | ||
| { | ||
| $rootNode | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. when MemberAuthor
| ||
| ->children() | ||
| ->arrayNode('session') | ||
| ->info('session configuration') | ||
| ->canBeEnabled() | ||
| ->children() | ||
| ->scalarNode('storage_factory_id')->defaultValue('session.storage.factory.native')->end() | ||
| ->scalarNode('handler_id') | ||
| ->info('Defaults to using the native session handler, or to the native *file* session handler if "save_path" is not null.') | ||
| ->end() | ||
| ->scalarNode('name') | ||
| ->validate() | ||
| ->ifTrue(function ($v) { | ||
| @@ -694,14 +662,16 @@ private function addSessionSection(ArrayNodeDefinition $rootNode): void | ||
| ->scalarNode('cookie_lifetime')->end() | ||
| ->scalarNode('cookie_path')->end() | ||
| ->scalarNode('cookie_domain')->end() | ||
| ->enumNode('cookie_secure')->values([true, false, 'auto'])->defaultValue('auto')->end() | ||
| ->booleanNode('cookie_httponly')->defaultTrue()->end() | ||
| ->enumNode('cookie_samesite')->values([null, Cookie::SAMESITE_LAX, Cookie::SAMESITE_STRICT, Cookie::SAMESITE_NONE])->defaultValue('lax')->end() | ||
| ->booleanNode('use_cookies')->end() | ||
| ->scalarNode('gc_divisor')->end() | ||
| ->scalarNode('gc_probability')->defaultValue(1)->end() | ||
| ->scalarNode('gc_maxlifetime')->end() | ||
| ->scalarNode('save_path') | ||
| ->info('Defaults to "%kernel.cache_dir%/sessions" if the "handler_id" option is not null') | ||
| ->end() | ||
| ->integerNode('metadata_update_threshold') | ||
| ->defaultValue(0) | ||
| ->info('seconds to wait between 2 session metadata updates') | ||
| @@ -1013,25 +983,6 @@ private function addTranslatorSection(ArrayNodeDefinition $rootNode, callable $e | ||
| private function addValidationSection(ArrayNodeDefinition $rootNode, callable $enableIfStandalone): void | ||
| { | ||
| $rootNode | ||
| ->children() | ||
| ->arrayNode('validation') | ||
| ->info('validation configuration') | ||
| @@ -1047,7 +998,7 @@ private function addValidationSection(ArrayNodeDefinition $rootNode, callable $e | ||
| ->validate()->castToArray()->end() | ||
| ->end() | ||
| ->scalarNode('translation_domain')->defaultValue('validators')->end() | ||
| ->enumNode('email_validation_mode')->values(['html5', 'loose', 'strict'])->defaultValue('html5')->end() | ||
| ->arrayNode('mapping') | ||
| ->addDefaultsIfNotSet() | ||
| ->fixXmlConfig('path') | ||
| @@ -1312,17 +1263,6 @@ private function addCacheSection(ArrayNodeDefinition $rootNode, callable $willBe | ||
| private function addPhpErrorsSection(ArrayNodeDefinition $rootNode): void | ||
| { | ||
| $rootNode | ||
| ->children() | ||
| ->arrayNode('php_errors') | ||
| ->info('PHP errors handling configuration') | ||
| @@ -1332,6 +1272,7 @@ private function addPhpErrorsSection(ArrayNodeDefinition $rootNode): void | ||
| ->info('Use the application logger instead of the PHP logger for logging PHP errors.') | ||
| ->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.') | ||
| ->treatNullLike($this->debug) | ||
| ->defaultTrue() | ||
| ->beforeNormalization() | ||
| ->ifArray() | ||
| ->then(function (array $v): array { | ||
| @@ -2344,23 +2285,6 @@ private function addRateLimiterSection(ArrayNodeDefinition $rootNode, callable $ | ||
| private function addUidSection(ArrayNodeDefinition $rootNode, callable $enableIfStandalone): void | ||
| { | ||
| $rootNode | ||
| ->children() | ||
| ->arrayNode('uid') | ||
| ->info('Uid configuration') | ||
| @@ -2369,6 +2293,7 @@ private function addUidSection(ArrayNodeDefinition $rootNode, callable $enableIf | ||
| ->children() | ||
| ->enumNode('default_uuid_version') | ||
| ->values([7, 6, 4, 1]) | ||
| ->defaultValue(7) | ||
| ->end() | ||
| ->enumNode('name_based_uuid_version') | ||
| ->defaultValue(5) | ||
| @@ -2379,6 +2304,7 @@ private function addUidSection(ArrayNodeDefinition $rootNode, callable $enableIf | ||
| ->end() | ||
| ->enumNode('time_based_uuid_version') | ||
| ->values([7, 6, 1]) | ||
| ->defaultValue(7) | ||
| ->end() | ||
| ->scalarNode('time_based_uuid_node') | ||
| ->cannotBeEmpty() | ||