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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy