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
[API][CatalogPromotion] refactor Variants Provider to strategy Pattern #13145
[API][CatalogPromotion] refactor Variants Provider to strategy Pattern #13145
Conversation
AdamKasp
commented
Sep 27, 2021
•
edited
edited
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
License | MIT |
src/Sylius/Bundle/CoreBundle/Provider/VariantsBasedOnCatalogPromotionVariantsRuleProvider.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/CoreBundle/Provider/VariantsBasedOnCatalogPromotionVariantsRuleProvider.php
Outdated
Show resolved
Hide resolved
35229b2
to
afbe7e4
Compare
4c6638b
to
7f4152f
Compare
src/Sylius/Bundle/CoreBundle/Provider/ForVariantsRuleVariantsProvider.php
Show resolved
Hide resolved
src/Sylius/Bundle/CoreBundle/Provider/VariantsProviderInterface.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/CoreBundle/spec/Provider/CatalogPromotionVariantsProviderSpec.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/CoreBundle/spec/Provider/ForVariantsRuleVariantsProviderSpec.php
Outdated
Show resolved
Hide resolved
b27e1aa
to
92f6bc9
Compare
<argument type="service" id="sylius.repository.product_variant" /> | ||
<tag name="sylius.catalog_promotion.variants_provider" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, we should probably mention this tag somewhere in the documentation 🖖
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
absolutely we should, but IMHO it should be in separate PR (with an explanation of how it works with more rules), I will add subtask to our board :)
src/Sylius/Bundle/CoreBundle/spec/Provider/CatalogPromotionVariantsProviderSpec.php
Outdated
Show resolved
Hide resolved
92f6bc9
to
d432c62
Compare
Thanks, Adam! 🥇 |