Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Session parameter docs for SessionPersistenceInterface #33

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Jul 28, 2022

Q A
Documentation yes

Description

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

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]>
@gsteel gsteel added Documentation Enhancement New feature or request labels Jul 28, 2022
@gsteel gsteel added this to the 1.9.0 milestone Jul 28, 2022
@Ocramius
Copy link
Member

It's a breakage, but a valid one.

It will cause a cascade of type-checking failures, I suppose 🤔

@Ocramius Ocramius self-assigned this Jul 28, 2022
@Ocramius Ocramius merged commit a009020 into mezzio:1.9.x Jul 28, 2022
@gsteel
Copy link
Member Author

gsteel commented Jul 28, 2022

It will cause a cascade of type-checking failures, I suppose

It should fix more than it breaks shouldn't it?, certainly in mezzio-session-* stuff because $session->getId() is missing from SessionInterface, but widely used. I didn't find any implementations that don't already implement both interfaces…

@gsteel gsteel deleted the session-id-interface branch July 28, 2022 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants