Skip to content

Commit 0112177

Browse files
bug #34317 [HttpFoundation][Lock] Connection parameter corrected (wimg)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead. Discussion ---------- [HttpFoundation][Lock] Connection parameter corrected | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Connection parameter incorrectly specified. This variable doesn't exist, the data is in $connection instead. Commits ------- 27207c3 [HttpFoundation][Lock] Connection parameter corrected
2 parents 10a349c + 27207c3 commit 0112177

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)