8000 [FrameworkBundle] Remove default value for gc_probability config option · symfony/symfony@e42eb19 · GitHub
[go: up one dir, main page]

Skip to content

Commit e42eb19

Browse files
[FrameworkBundle] Remove default value for gc_probability config option
1 parent bb53ec1 commit e42eb19

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ private function addSessionSection(ArrayNodeDefinition $rootNode): void
673673
->enumNode('cookie_samesite')->values([null, Cookie::SAMESITE_LAX, Cookie::SAMESITE_STRICT, Cookie::SAMESITE_NONE])->defaultValue('lax')->end()
674674
->booleanNode('use_cookies')->end()
675675
->scalarNode('gc_divisor')->end()
676-
->scalarNode('gc_probability')->defaultValue(1)->end()
676+
->scalarNode('gc_probability')->end()
677677
->scalarNode('gc_maxlifetime')->end()
678678
->scalarNode('save_path')
679679
->info('Defaults to "%kernel.cache_dir%/sessions" if the "handler_id" option is not null')

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,6 @@ protected static function getBundleDefaultConfig()
814814
'cookie_httponly' => true,
815815
'cookie_samesite' => 'lax',
816816
'cookie_secure' => 'auto',
817-
'gc_probability' => 1,
818817
'metadata_update_threshold' => 0,
819818
],
820819
'request' => [

0 commit comments

Comments
 (0)
0