IBX-1489: Changed ProxyManager dependency#274
Conversation
|
Kudos, SonarCloud Quality Gate passed!
|
alongosz
left a comment
There was a problem hiding this comment.
What are the differences between those packages?
|
According to the README, it's just a fork. As mentioned, it was overriding the |
To clarify, the actual reason $ composer why symfony/proxy-manager-bridge
ibexa/commerce-skeleton dev-master requires symfony/proxy-manager-bridge (5.3.*)
ibexa/commerce-rest 4.0.x-dev requires symfony/proxy-manager-bridge (^5.2)
ibexa/installer 4.0.x-dev requires symfony/proxy-manager-bridge (^5.0)
ibexa/migrations 4.0.x-dev requires symfony/proxy-manager-bridge (^5.3)
ibexa/oss 4.0.x-dev requires symfony/proxy-manager-bridge (^5.3.0)
ibexa/personalization 4.0.x-dev requires symfony/proxy-manager-bridge (^5.0)
ibexa/system-info 4.0.x-dev requires symfony/proxy-manager-bridge (^5.0)
symfony/dependency-injection v5.3.11 conflicts symfony/proxy-manager-bridge (<4.4)
$ composer why friendsofphp/proxy-manager-lts
doctrine/migrations 3.3.2 requires friendsofphp/proxy-manager-lts (^1.0)
friendsofphp/proxy-manager-lts v1.0.5 replaces ocramius/proxy-manager (^2.1)
ibexa/core 4.0.x-dev requires ocramius/proxy-manager (^2.2)
ibexa/system-info 4.0.x-dev requires ocramius/proxy-manager (^2.2)
ibexa/workflow 4.0.x-dev requires ocramius/proxy-manager (^2.1)
symfony/proxy-manager-bridge v5.3.11 requires friendsofphp/proxy-manager-lts (^1.0.2)while dependencies on $ composer why ocramius/proxy-manager
friendsofphp/proxy-manager-lts v1.0.5 replaces ocramius/proxy-manager (^2.1)
ibexa/core 4.0.x-dev requires ocramius/proxy-manager (^2.2)
ibexa/system-info 4.0.x-dev requires ocramius/proxy-manager (^2.2)
ibexa/workflow 4.0.x-dev requires ocramius/proxy-manager (^2.1) |
|
From what I can see in the linked PR, it's not the |
Don't failing tests there indicate that the package isn't fully ready yet though? Nonetheless, it seems we can replace |
Look at the PR itself and why they are failing. |








v3.3Ocramius/ProxyManageris not yet ready for PHP8.1, ref: Ocramius/ProxyManager#731. Therefore, some of our dependencies fail on installing kernel, ref: https://github.com/ezsystems/ezplatform-http-cache/runs/4560553221?check_suite_focus=true#step:4:30. In fact, while installing kernel we rely on https://github.com/FriendsOfPHP/proxy-manager-lts anyway due to usage ofproxy-manager-bridge, ref: https://github.com/ezsystems/ezplatform-kernel/blob/1.3/composer.json#L70.Given the idea of
proxy-manager-ltsis being easier on PHP requirement (https://github.com/FriendsOfPHP/proxy-manager-lts/blob/1.x/composer.json#L29) relying on this dependency will resolve the issue. We might get back to Ocramius's package as soon as the support for PHP8.1 is provided, but this approach might backfire whenever there is a new version of PHP.Checklist:
$ composer fix-cs).@ezsystems/engineering-team).