Skip to content

Commit 76c7126

Browse files
committed
formatting
1 parent 5483549 commit 76c7126

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/Illuminate/Session/Middleware/StartSession.php

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function handle($request, Closure $next)
6262
// Again, if the session has been configured we will need to close out the session
6363
// so that the attributes may be persisted to some storage medium. We will also
6464
// add the session identifier cookie to the application response headers now.
65-
$this->saveSession();
65+
$this->saveSession($request);
6666

6767
return $response;
6868
}
@@ -159,6 +159,17 @@ protected function addCookieToResponse(Response $response, Session $session)
159159
}
160160
}
161161

162+
/**
163+
* Save the session data to storage.
164+
*
165+
* @param \Illuminate\Http\Request $request
166+
* @return void
167+
*/
168+
protected function saveSession($request)
169+
{
170+
$this->manager->driver()->save();
171+
}
172+
162173
/**
163174
* Get the session lifetime in seconds.
164175
*
@@ -205,14 +216,4 @@ protected function sessionIsPersistent(array $config = null)
205216

206217
return ! in_array($config['driver'], [null, 'array']);
207218
}
208-
209-
/**
210-
* Save the session data to storage.
211-
*
212-
* @return void
213-
*/
214-
protected function saveSession()
215-
{
216-
$this->manager->driver()->save();
217-
}
218219
}

0 commit comments

Comments
 (0)