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
5050 case 0 === strpos ($ connection , 'file:// ' ):
5151 return new StrictSessionHandler (new NativeFileSessionHandler (substr ($ connection , 7 )));
5252
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: ' ):
5656 if (!class_exists (AbstractAdapter::class)) {
5757 throw new InvalidArgumentException (sprintf ('Unsupported DSN "%s". Try running "composer require symfony/cache". ' , $ connection ));
5858 }
59- $ handlerClass = 0 === strpos ($ connection , 'memcached:// ' ) ? MemcachedSessionHandler::class : RedisSessionHandler::class;
59+ $ handlerClass = 0 === strpos ($ connection , 'memcached: ' ) ? MemcachedSessionHandler::class : RedisSessionHandler::class;
6060 $ connection = AbstractAdapter::createConnection ($ connection , ['lazy ' => true ]);
6161
6262 return new $ handlerClass ($ connection );
You can’t perform that action at this time.
0 commit comments