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

Feature/2423 shopware order modules #2425

Merged
merged 4 commits into from
Feb 23, 2021

Conversation

Schrank
Copy link
Contributor

@Schrank Schrank commented Feb 20, 2021

This PR reads the dependency infos of shopware modules from composer.lock and sorts the modules according to the require dependencies before activating/migration them.

@peterjaap please have a look for the content
@antonmedv I See no way around marcj/topsort, but for PHP8 I only need str_ends_with, so in theory we could implement this method on our own and remove the dependency on polyfill80.

…wrong order

- add dependency for polyfill (to use str_ends_with)
- marcj/topsort (for sorting the shopware modules)
…wrong order

- get the plugin list
- read the composer names and dependencies from composer.lock
- order by dependencies
- use sorted list for activation and migration
@Schrank Schrank added the bug label Feb 20, 2021
…wrong order

do not update doc, but remove require autoload.php
@Schrank Schrank force-pushed the feature/2423-shopware-order-modules branch from 06c28fd to 363c13f Compare February 20, 2021 12:48
@Schrank
Copy link
Contributor Author

Schrank commented Feb 20, 2021

I'm sooo happy...

[stage.winkelwagen.de] info successfully deployed!

Works - once you pushed the updated composer.lock :D

@peterjaap peterjaap merged commit f5c9a92 into master Feb 23, 2021
@peterjaap peterjaap deleted the feature/2423-shopware-order-modules branch February 23, 2021 07:50
@peterjaap
Copy link
Contributor

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

shopware: task sw:plugin:activate:all runs migration script in wrong order
2 participants