From 27207c3056284fa596d9112652b27cd7074e1494 Mon Sep 17 00:00:00 2001 From: wimg Date: Mon, 11 Nov 2019 17:54:27 +0900 Subject: [PATCH] [HttpFoundation][Lock] Connection parameter corrected --- .../Session/Storage/Handler/SessionHandlerFactory.php | 2 +- src/Symfony/Component/Lock/Store/StoreFactory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/SessionHandlerFactory.php b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/SessionHandlerFactory.php index e7acf5173c..00cf1521ae 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/SessionHandlerFactory.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/SessionHandlerFactory.php @@ -54,7 +54,7 @@ class SessionHandlerFactory case 0 === strpos($connection, 'rediss://'): case 0 === strpos($connection, 'memcached://'): if (!class_exists(AbstractAdapter::class)) { - throw new InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $this->dsn)); + throw new InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $storage)); } $handlerClass = 0 === strpos($connection, 'memcached://') ? MemcachedSessionHandler::class : RedisSessionHandler::class; $connection = AbstractAdapter::createConnection($connection, ['lazy' => true]); diff --git a/src/Symfony/Component/Lock/Store/StoreFactory.php b/src/Symfony/Component/Lock/Store/StoreFactory.php index bb0f4cbfe0..b8c90e170d 100644 --- a/src/Symfony/Component/Lock/Store/StoreFactory.php +++ b/src/Symfony/Component/Lock/Store/StoreFactory.php @@ -70,7 +70,7 @@ class StoreFactory case 0 === strpos($connection, 'rediss://'): case 0 === strpos($connection, 'memcached://'): if (!class_exists(AbstractAdapter::class)) { - throw new InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $this->dsn)); + throw new InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $connection)); } $storeClass = 0 === strpos($connection, 'memcached://') ? MemcachedStore::class : RedisStore::class; $connection = AbstractAdapter::createConnection($connection, ['lazy' => true]);