File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,13 @@ public static function createHandler($connection): AbstractSessionHandler
50
50
case 0 === strpos ($ connection , 'file:// ' ):
51
51
return new StrictSessionHandler (new NativeFileSessionHandler (substr ($ connection , 7 )));
52
52
53
- case 0 === strpos ($ connection , 'redis:// ' ):
54
- case 0 === strpos ($ connection , 'rediss:// ' ):
55
- case 0 === strpos ($ connection , 'memcached:// ' ):
53
+ case 0 === strpos ($ connection , 'redis: ' ):
54
+ case 0 === strpos ($ connection , 'rediss: ' ):
55
+ case 0 === strpos ($ connection , 'memcached: ' ):
56
56
if (!class_exists (AbstractAdapter::class)) {
57
57
throw new InvalidArgumentException (sprintf ('Unsupported DSN "%s". Try running "composer require symfony/cache". ' , $ connection ));
58
58
}
59
- $ handlerClass = 0 === strpos ($ connection , 'memcached:// ' ) ? MemcachedSessionHandler::class : RedisSessionHandler::class;
59
+ $ handlerClass = 0 === strpos ($ connection , 'memcached: ' ) ? MemcachedSessionHandler::class : RedisSessionHandler::class;
60
60
$ connection = AbstractAdapter::createConnection ($ connection , ['lazy ' => true ]);
61
61
62
62
return new $ handlerClass ($ connection );
You can’t perform that action at this time.
0 commit comments