-
-
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
[PromotionBundle] The collection form type uses the new CollectionExtension #2239
Conversation
arnolanglade
commented
Dec 9, 2014
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Behat? | no |
Phpspec? | yes |
Fixed tickets | - |
License | MIT |
Doc PR | - |
->add('type', 'sylius_promotion_rule_choice', array( | ||
'label' => 'sylius.form.rule.type' | ||
)) | ||
->addEventSubscriber(new BuildRuleFormListener($this->checkerRegistry, $builder->getFormFactory()), $options['rule_type']) |
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.
Wrongly placed )
. Should be:
- ->addEventSubscriber(new BuildRuleFormListener($this->checkerRegistry, $builder->getFormFactory()), $options['rule_type'])
+ ->addEventSubscriber(new BuildRuleFormListener($this->checkerRegistry, $builder->getFormFactory(), $options['rule_type']))
b58acd2
to
7b06c01
Compare
@pjedrzejewski I need to fix spec and behat but what do you think about it? |
|
||
/** | ||
* Shipping country rule configuration form type. | ||
* | ||
* @author Saša Stamenković <umpirsky@gmail.com> | ||
*/ | ||
class ShippingCountryConfigurationType extends AbstractResourceType | ||
class ShippingCountryConfigurationType extends AbstractType |
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.
What's the reason?
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.
because of 'class' => $this->dataClass. class is not data_class.
Looks really good to me, nice work Arnaud! 👍 |
3461d16
to
8e0a5f6
Compare
@Sylius/core-team / @stloyd It is time to code review ! |
@Arn0d Looks good for me, nice job ;) |
8e0a5f6
to
0eb0887
Compare
You guys, I get exactly the same errors than the country form (I speak about behat). I run them manually and it works! @pjedrzejewski what do you think ? |
ping @pjedrzejewski |
[PromotionBundle] The collection form type uses the new CollectionExtension
Thank you Arnaud! Really nice work! 👍 |
✌️ |