-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Promotion] Clean up promotions handling #6000
[Promotion] Clean up promotions handling #6000
Conversation
pamil
commented
Sep 7, 2016
Q | A |
---|---|
Bug fix? | yes |
New feature? | no |
BC breaks? | yes |
Related tickets | - |
License | MIT |
b0ec531
to
dc05ac4
Compare
58617b9
to
1bc72c0
Compare
…our of the shorter one
…ePromotionSubjectInterface
…motionSubjectInterface
8179fa6
to
7ee9a11
Compare
@@ -196,7 +196,7 @@ Below you can see how it works: | |||
* @param ServiceRegistryInterface $registry | |||
* @param EventDispatcherInterface $dispatcher | |||
*/ | |||
$checker = new PromotionEligibilityChecker($checkerRegistry, $dispatcher); | |||
$checker = new CompositePromotionEligibilityChecker($checkerRegistry, $dispatcher); |
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.
$checker = new CompositePromotionEligibilityChecker($checkerRegistry);
Thanks Kamil! 👍 Please apply comments in a separate PR. |
While I'm okay with making BC breaks as long as beta1 isn't released yet this wasn't documented in UPGRADE.md. Please document the new way of creating promotion codes by using a |
You can still use any /**
* @param PromotionInterface $promotion
* @param PromotionCouponGeneratorInstructionInterface $instruction
*
* @return array of generated coupons with coupon code as a key
*/
public function generate(PromotionInterface $promotion, PromotionCouponGeneratorInstructionInterface $instruction); |
Oh wow, I came from Still, it would be nice if such changes are documented, but I think right now too many BC breaks are made to document all of them right? Are there any new docs on how to create coupons? What's Sylius's point of view on this, because I don't want to write libraries on all the Sylius classes I've integrated ;-) |
There were so many BC breaks introduced recently (classes made @TheMadeleine keeps up with extremely good work documenting Sylius so there indeed is a documentation about generating coupons. |
Ghehe yes I'm kinda used to follow upgrade logs, but didn't see any mentions about the changes to the I'll do a hotfix now, good luck finishing |