File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public static function createHandler($connection): AbstractSessionHandler
63
63
case str_starts_with ($ connection , 'rediss: ' ):
64
64
case str_starts_with ($ connection , 'memcached: ' ):
65
65
if (!class_exists (AbstractAdapter::class)) {
66
- throw new \InvalidArgumentException (sprintf ( 'Unsupported DSN "%s" . Try running "composer require symfony/cache". ' , $ connection ) );
66
+ throw new \InvalidArgumentException ('Unsupported Redis or Memcached DSN . Try running "composer require symfony/cache". ' );
67
67
}
68
68
$ handlerClass = str_starts_with ($ connection , 'memcached: ' ) ? MemcachedSessionHandler::class : RedisSessionHandler::class;
69
69
$ connection = AbstractAdapter::createConnection ($ connection , ['lazy ' => true ]);
@@ -72,7 +72,7 @@ public static function createHandler($connection): AbstractSessionHandler
72
72
73
73
case str_starts_with ($ connection , 'pdo_oci:// ' ):
74
74
if (!class_exists (DriverManager::class)) {
75
- throw new \InvalidArgumentException (sprintf ( 'Unsupported DSN "%s" . Try running "composer require doctrine/dbal". ' , $ connection ) );
75
+ throw new \InvalidArgumentException ('Unsupported PDO OCI DSN . Try running "composer require doctrine/dbal". ' );
76
76
}
77
77
$ connection [3 ] = '- ' ;
78
78
$ params = class_exists (DsnParser::class) ? (new DsnParser ())->parse ($ connection ) : ['url ' => $ connection ];
You can’t perform that action at this time.
0 commit comments