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

Revise psr/container compatiblity #2227

Closed
mbrodala opened this issue Sep 25, 2023 · 8 comments · Fixed by #2237
Closed

Revise psr/container compatiblity #2227

mbrodala opened this issue Sep 25, 2023 · 8 comments · Fixed by #2237
Labels
dependencies Pull requests that update a dependency file
Milestone

Comments

@mbrodala
Copy link
Contributor

mbrodala commented Sep 25, 2023

With #2106 the support for psr/container 1.x was dropped, now supporting version 2.x only.

Now I wonder if this change is really necessary. Currently this means that using Phinx with some Symfony packages 5.x (namely symfony/dependency-injection) is not possible anymore since these require psr/container 1.x; support for psr/container 2.x was added with Symfony 6.x.

AFAIS the ContainerInterface / getContainer() usage in Phinx itself is very slim:

Nothing here requires API from psr/container 2.x unless I'm missing something.

So maybe consider supporting psr/container 1.x again?

@dereuromark
Copy link
Member

You can make a PR and if nothing breaks we could definitly consider it for better compatibility range.

@dereuromark dereuromark added this to the 0.15.x milestone Sep 25, 2023
@dereuromark dereuromark added the dependencies Pull requests that update a dependency file label Sep 25, 2023
@MasterOdin
Copy link
Member

Phinx also relies on cakephp/database which relies on cakephp/core which relies on psr/container:^2.0, so not really a way for phinx currently to specify "psr/container": "^1.0 | ^2.0" currently. This would be another point in favor of #1754 I suppose.

@mbrodala
Copy link
Contributor Author

@MasterOdin Thanks for the research. Indeed in this case I still couldn't keep psr/container 1.x.

@dereuromark
Copy link
Member

Resolved with cakephp/cakephp#17356 (comment)

@wallacio
Copy link
Contributor

wallacio commented Nov 9, 2023

With that last merge to cakephp/cakephp, will composer.json be updated to allow both versions?

@dereuromark
Copy link
Member

What do you mean?
https://github.com/cakephp/cakephp/releases/tag/5.0.2 shows it was all released already as such.

@wallacio
Copy link
Contributor

wallacio commented Nov 9, 2023

Yes, noted - I'm referring to

"psr/container": "^2.0",

...which won't allow for 1.x?

@dereuromark
Copy link
Member

Released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants