-
Notifications
You must be signed in to change notification settings - Fork 71
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
[RefundPayment] Make the Refund customization easier #320
Conversation
7e21428
to
6cda314
Compare
UnitRefundTotalCalculatorInterface $unitRefundTotalCalculator | ||
): void { | ||
$this->beConstructedWith($unitRefundTotalCalculator); | ||
public function let(RefundUnitsConverterInterface $refundUnitsConverter): void |
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.
public
in spec 💃
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.
Why not? public
is a default one if there is not access modifier specified
if (isset($unit['full'])) { | ||
return null; | ||
} |
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.
This is so bad :( I wonder, cannot we just always operate on the actual value? I don't know won't it need a avalanche of changes in other parts of the application, so could possibly be done as an improvement in a separate PR
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.
I agree, but I didn't want to change the current behaviour, just extract some logic and improve extendability
Thank you, Grzegorz! 🎉 |
…omization with improvements (AdamKasp, GSadee) This PR was merged into the 1.9 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.9 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | bases on #12717 and waits for merge Sylius/RefundPlugin#320 | License | MIT Commits ------- 14689d7 Add cookbook about refund customization 3b689aa [Documentation] Add fixes to cookbook about refund customization 95ad5b3 [Documentation] Add fixes to cookbook about refund customization after refactoring factory acd4b2d [Documentation] Add fixes to cookbook about refund customization after refactoring creator 1e1947e [Documentation] Minor fix to cookbook about refund customization
No description provided.