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

Isolate container and modularity deps #972

Merged
merged 4 commits into from
Nov 14, 2022
Merged

Isolate container and modularity deps #972

merged 4 commits into from
Nov 14, 2022

Conversation

AlexP11223
Copy link
Contributor

@AlexP11223 AlexP11223 commented Nov 9, 2022

Prefixed container and modularity deps using Mozart to fix conflicts that seem to appear more frequently now in newer WC.

Currently, the packages are simply added in the repo (like in WC woocommerce/woocommerce#33703) to avoid making the build process more complex (Mozart requires PHP 7.3).
We need to isolate only PSR-11 containers and Dhii modularity packages, which are not supposed to change often, so it should not be a problem.

This will break plugin extensions via modules like #234 (comment)
But there are not many such users (if any?), and it can be easily fixed by adding the namespace prefix (WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface, WooCommerce\PayPalCommerce\Vendor\Dhii\Modular\Module\ModuleInterface).

@AlexP11223 AlexP11223 requested a review from Dinamiko November 9, 2022 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants