Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2b0568

Browse files
author
Jan Christoph Beyer
committed
fix redis multi host dsn not recognized
1 parent 88ed817 commit d2b0568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/SessionHandlerFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static function createHandler($connection): AbstractSessionHandler
5050
case 0 === strpos($connection, 'file://'):
5151
return new StrictSessionHandler(new NativeFileSessionHandler(substr($connection, 7)));
5252

53-
case 0 === strpos($connection, 'redis://'):
53+
case 0 === strpos($connection, 'redis:'):
5454
case 0 === strpos($connection, 'rediss://'):
5555
case 0 === strpos($connection, 'memcached://'):
5656
if (!class_exists(AbstractAdapter::class)) {

0 commit comments

Comments
 (0)