Skip to content

Commit 0fc0a93

Browse files
Merge branch '4.4' into 5.0
* 4.4: fix merge Require PHPUnit 9.3 on PHP 8 [Cache] fix catching auth errors Fix CS [FrameworkBundle] set default session.handler alias if handler_id is not provided Fix CS Readability update Fix checks for phpunit releases on Composer 2 (resolves #37601) [Serializer] Support multiple levels of discriminator mapping Use hexadecimal numerals instead of hexadecimals in strings to represent error codes. [SCA] Minor fixes on tests [WebProfilerBundle] modified url generation to use absolute urls [Mailer] Fix reply-to functionality in the SendgridApiTransport [Mime] Fix compat with HTTP requests ticket_36879 - Fix mandrill raw http request setting from email/name
2 parents bbe9feb + c698b86 commit 0fc0a93

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,7 @@ private function registerSessionConfiguration(array $config, ContainerBuilder $c
917917
// Set the handler class to be null
918918
$container->getDefinition('session.storage.native')->replaceArgument(1, null);
919919
$container->getDefinition('session.storage.php_bridge')->replaceArgument(0, null);
920+
$container->setAlias('session.handler', 'session.handler.native_file')->setPrivate(true);
920921
} else {
921922
$container->resolveEnvPlaceholders($config['handler_id'], null, $usedEnvs);
922923

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ public function testNullSessionHandler()
501501
$this->assertTrue($container->hasDefinition('session'), '->registerSessionConfiguration() loads session.xml');
502502
$this->assertNull($container->getDefinition('session.storage.native')->getArgument(1));
503503
$this->assertNull($container->getDefinition('session.storage.php_bridge')->getArgument(0));
504+
$this->assertSame('session.handler.native_file', (string) $container->getAlias('session.handler'));
504505

505506
$expected = ['session', 'initialized_session'];
506507
$this->assertEquals($expected, array_keys($container->getDefinition('session_listener')->getArgument(0)->getValues()));

0 commit comments

Comments
 (0)