From 043aa0f2d964b33e00e6b0c4d0d0ff88ee973745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Wed, 11 Apr 2018 23:19:34 +0200 Subject: [PATCH] fixes log in without remember on master (#1402) * fixes log in without remember on master * Fix cookie name by removing prefix from session name rather than in CookieFactory * Inline temp variable --- src/Http/Middleware/StartSession.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Http/Middleware/StartSession.php b/src/Http/Middleware/StartSession.php index 7447aceea..4fbd1b8e6 100644 --- a/src/Http/Middleware/StartSession.php +++ b/src/Http/Middleware/StartSession.php @@ -40,7 +40,9 @@ class StartSession implements MiddlewareInterface protected $config; /** + * @param SessionHandlerInterface $handler * @param CookieFactory $cookie + * @param ConfigRepository $config */ public function __construct(SessionHandlerInterface $handler, CookieFactory $cookie, ConfigRepository $config) { @@ -67,12 +69,10 @@ class StartSession implements MiddlewareInterface private function makeSession(Request $request) { - $cookieName = $this->cookie->getName($this->config['cookie']); - return new Store( - $cookieName, + $this->config['cookie'], $this->handler, - array_get($request->getCookieParams(), $cookieName) + array_get($request->getCookieParams(), $this->cookie->getName($this->config['cookie'])) ); }