Skip to content

Commit

Permalink
Update Session parameter docs for SessionPersistenceInterface
Browse files Browse the repository at this point in the history
Until 2.0 is released, persistence implementations generally need to know what the session id is with `$session->getId()` inside their `persistSession` implementation. This changes the expected parameter to an intersection of `SessionInterface&SessionIdentifierAwareInterface`

Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Jul 28, 2022
1 parent 7b12daf commit 374f5cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SessionPersistenceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public function initializeSessionFromRequest(ServerRequestInterface $request): S
*
* Persists the session data, returning a response instance with any
* artifacts required to return to the client.
*
* @param SessionInterface&SessionIdentifierAwareInterface $session
*/
public function persistSession(SessionInterface $session, ResponseInterface $response): ResponseInterface;
}

0 comments on commit 374f5cd

Please sign in to comment.