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

[RFC]: Mezzio v4 #81

Open
boesing opened this issue Jul 2, 2021 · 2 comments
Open

[RFC]: Mezzio v4 #81

boesing opened this issue Jul 2, 2021 · 2 comments
Labels
Milestone

Comments

@boesing
Copy link
Member

boesing commented Jul 2, 2021

RFC

Q A
Proposed Version(s) 4.0.0
BC Break? Yes

Goal

  • Remove callable response factory support
  • Add latest coding standard and add declare(strict_types=1); where its missing

Background

We already prepared v3 to support native PSR-17 factories (when available) and now we just have to create a new major to drop support for the callable factory.

Considerations

mezzio/mezzio (like laminas/laminas-mvc) is supposed to work as a "project". I dont think that there are too many components which depend on it and thus, we can safely create a new major.

Proposal(s)

To get fully PSR-17 compatible, we just have to remove the ResponseInterface service usage (which was used to receive a callable which creates a PSR-7 ResponseInterface when being invoked.

Appendix

Affected components

Component PSR-17 compatible
mezzio/mezzio-router ❗ as of 3.6.0 ResponseFactoryInterface, StreamFactoryInterface still missing
mezzio/mezzio-authentication-basic ✔️ as of 1.4.0
mezzio/mezzio-authentication-laminasauthentication ✔️ as of 1.3.0
mezzio/mezzio-authentication-oauth2 ✔️ as of 2.4.0
mezzio/mezzio-authentication-session ✔️ as of 1.4.0
mezzio/mezzio-authorization ✔️ as of 1.4.0
mezzio/mezzio-hal ✔️ as of 2.3.0
mezzio/mezzio-problem-details ✔️ as of 1.5.0
mezzio/mezzio-problem-details
laminas/laminas-httphandlerrunner not affected

Project to keep track of current implementation status

@weierophinney
Copy link
Contributor

@boesing I guess we're ready for the BC breaking 4.0 now, since all components are now updated. 😄

@boesing
Copy link
Member Author

boesing commented Apr 12, 2022

Meh, I've forgot one component here: laminas/laminas-stratigility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
PSR-17 support
In progress
Development

No branches or pull requests

2 participants