Skip to content

PSR Container dependency version fix for 5.3 & 5.4 #44561

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

Closed
wants to merge 1 commit into from

Conversation

Nek-
Copy link
Contributor

@Nek- Nek- commented Dec 10, 2021

Q A
Branch? 5.3 / 5.4
Bug fix? somehow
New feature? no
Deprecations? no
License MIT

This problem is already solved on Sf 6.0 branch and also on the component itself but for 5.4 and 5.3 if you install with --prefer-lowest for symfony/symfony package, it will install a wrong version of psr container.

I hope this helps!

@@ -39,7 +39,7 @@
"doctrine/persistence": "^2",
"twig/twig": "^2.13|^3.0.4",
"psr/cache": "^1.0|^2.0",
"psr/container": "^1.0",
"psr/container": "^1.1|^2.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because DI does not support 2.0, this should actually be "^1.1.1" as in the DependencyInjection composer.json file.

@derrabus
Copy link
Member

As @fabpot explained, we cannot do this on 5.x. On 6.0 however, this change has been made already.

Let's close, thanks for proposing.

@derrabus derrabus closed this Dec 11, 2021
@Nek- Nek- deleted the patch-1 branch December 13, 2021 09:33
derrabus added a commit that referenced this pull request Dec 13, 2021
…ix for 5.3 & 5.4 (Nek-)

This PR was merged into the 5.3 branch.

Discussion
----------

[DependencyInjection] PSR Container dependency version fix for 5.3 & 5.4

| Q             | A
| ------------- | ---
| Branch?       | 5.3 / 5.4
| Bug fix?      | somehow
| New feature?  | no
| Deprecations? | no
| License       | MIT
<!--
Replace this notice by a short README for your feature/bugfix.
This will help reviewers and should be a good start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch 5.x.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
 - Never break backward compatibility (see https://symfony.com/bc).
-->

This problem is already solved on Sf 6.0 branch and also on the component itself but for 5.4 and 5.3 if you install with `--prefer-lowest` for `symfony/symfony` package, it will install a wrong version of psr container.

Updated from #44561 with `@fabpot` feedbacks.

`@derrabus` see the correct version here: https://github.com/symfony/symfony/blob/5.3/src/Symfony/Component/DependencyInjection/composer.json#L20

Commits
-------

b7644bd fix: lowest version of psr container supported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants