Skip to content

[DependencyInjection][Security] Backport psr/container 1.1/2.0 compatibility #40386

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

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Mar 5, 2021

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix https://github.com/symfony/symfony/pull/40384/files#r588494278
License MIT
Doc PR N/A

This PR backports a fix that I had to apply to the 5.x branch in order to make it compatible with the psr/container 1.1 interfaces.

It also updates various composer.json files:

  • Security Core only consumes a PSR ContainerInterface without providing its own implementation. I should be compatible with version 2 of the PSR package already.
  • DependencyInjection breaks on PHP 7.2 and 7.3 if psr/container 1.1.0 is installed. A version 1.1.1 has already been release that fixes the issue. I've added a conflict rule to document the incompatibility.

@carsonbot carsonbot added this to the 4.4 milestone Mar 5, 2021
@carsonbot carsonbot changed the title Backport psr/cache 1.1/2.0 compatibility [DependencyInjection] Backport psr/cache 1.1/2.0 compatibility Mar 5, 2021
@carsonbot carsonbot changed the title [DependencyInjection] Backport psr/cache 1.1/2.0 compatibility [DependencyInjection][Security] Backport psr/cache 1.1/2.0 compatibility Mar 5, 2021
@derrabus derrabus changed the title [DependencyInjection][Security] Backport psr/cache 1.1/2.0 compatibility [DependencyInjection][Security] Backport psr/container 1.1/2.0 compatibility Mar 5, 2021
@derrabus
Copy link
Member Author

derrabus commented Mar 5, 2021

Update: PR title and commit message mentioned the wrong PSR package. 😓

@derrabus derrabus merged commit 869c734 into symfony:4.4 Mar 5, 2021
@fabpot fabpot mentioned this pull request Mar 10, 2021
@derrabus derrabus deleted the backport-psr-1.1 branch March 13, 2021 15:21
@fabpot fabpot mentioned this pull request Mar 29, 2021
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.

5 participants