From 76c7126641e781fa30d819834f07149dda4e01e6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 5 Mar 2019 07:33:49 -0600 Subject: [PATCH] formatting --- .../Session/Middleware/StartSession.php | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/Illuminate/Session/Middleware/StartSession.php b/src/Illuminate/Session/Middleware/StartSession.php index 312c0a4a5108..49f02f27520a 100644 --- a/src/Illuminate/Session/Middleware/StartSession.php +++ b/src/Illuminate/Session/Middleware/StartSession.php @@ -62,7 +62,7 @@ public function handle($request, Closure $next) // Again, if the session has been configured we will need to close out the session // so that the attributes may be persisted to some storage medium. We will also // add the session identifier cookie to the application response headers now. - $this->saveSession(); + $this->saveSession($request); return $response; } @@ -159,6 +159,17 @@ protected function addCookieToResponse(Response $response, Session $session) } } + /** + * Save the session data to storage. + * + * @param \Illuminate\Http\Request $request + * @return void + */ + protected function saveSession($request) + { + $this->manager->driver()->save(); + } + /** * Get the session lifetime in seconds. * @@ -205,14 +216,4 @@ protected function sessionIsPersistent(array $config = null) return ! in_array($config['driver'], [null, 'array']); } - - /** - * Save the session data to storage. - * - * @return void - */ - protected function saveSession() - { - $this->manager->driver()->save(); - } }