8000 [HttpFoundation][Lock] Connection parameter corrected · symfony/symfony@27207c3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 27207c3

Browse files
wimgnicolas-grekas
authored andcommitted
[HttpFoundation][Lock] Connection parameter corrected
1 parent 10a349c commit 27207c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
@@ -54,7 +54,7 @@ public static function createHandler($connection): AbstractSessionHandler
5454
case 0 === strpos($connection, 'rediss://'):
5555
case 0 === strpos($connection, 'memcached://'):
5656
if (!class_exists(AbstractAdapter::class)) {
57-
throw new InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $this->dsn));
57+
throw new InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $storage));
5858
}
5959
$handlerClass = 0 === strpos($connection, 'memcached://') ? MemcachedSessionHandler::class : RedisSessionHandler::class;
6060
$connection = AbstractAdapter::createConnection($connection, ['lazy' => true]);

src/Symfony/Component/Lock/Store/StoreFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static function createStore($connection)
7070
case 0 === strpos($connection, 'rediss://'):
7171
case 0 === strpos($connection, 'memcached://'):
7272
if (!class_exists(AbstractAdapter::class)) {
73-
throw new InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $this->dsn));
73+
throw new InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $connection));
7474
}
7575
$storeClass = 0 === strpos($connection, 'memcached://') ? MemcachedStore::class : RedisStore::class;
7676
$connection = AbstractAdapter::createConnection($connection, ['lazy' => true]);

0 commit comments

Comments
 (0)
0