8000 [ProxyManagerBridge] replace ProxyManager\Version by feature detection by nicolas-grekas · Pull Request #39017 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[ProxyManagerBridge] replace ProxyManager\Version by feature detection #39017

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
Nov 6, 2020

Conversation

nicolas-grekas
Copy link
Member
Q A
Branch? 4.4
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

I'd like to get rid of this Version class, which is the source of so many issues with deps.
This won't remove the class from ocramius/proxy-manager, but that's a separate story that this change could enable in the end :)

@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Nov 6, 2020
@fabpot
Copy link
Member
fabpot commented Nov 6, 2020

Thank you @nicolas-grekas.

@fabpot fabpot merged commit be8fd56 into symfony:4.4 Nov 6, 2020
@nicolas-grekas nicolas-grekas deleted the pmb-version branch November 11, 2020 10:41
nicolas-grekas added a commit that referenced this pull request Dec 22, 2021
…poser/package-versions-deprecated (stof)

This PR was merged into the 4.4 branch.

Discussion
----------

[ProxyManagerBridge] Remove the unused dependency on composer/package-versions-deprecated

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes/no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | -
| License       | MIT
| Doc PR        | n/a

The ProxyManagerBridge depends on friendsofphp/proxy-manager-lts which has an optional dependency on the PackageVersions class to implement the `ProxyManager\Version::getVersion` method on composer 1 (with a fallback to a less precise version number).
However, the bridge has stopped using that API in favor of feature detection (in #39017), so the dependency is unused.

This contributes to #44726

Commits
-------

6ca8e30 Remove the unused dependency on composer/package-versions-deprecated
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
0