-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Improve DonationNotifier implementation #244
Conversation
fbe7f25
to
916cb0b
Compare
670c1c9
to
af4651d
Compare
af4651d
to
ea3d64d
Compare
Create adapter classes that transform the templateArguments objects into arrays, passing them on to the TemplateBasedMailer which only accepts arrays. This is an adaptation for wmde/fundraising-donations#244
Create adapter classes that transform the templateArguments objects into arrays, passing them on to the TemplateBasedMailer which only accepts arrays. This is an adaptation for wmde/fundraising-donations#244
Since user can no longer cancel donations, remove all code that distinguishes between users and administrators. Remove reference to mailer interface, since that is no longer needed. This'll help improving the TemplateMailerInterface to accept only objects. Add `allow-plugins` section to composer.json to allow for new code style. The changes in the CancelDonationUseCase and CancelDonationRequest constructor are a BC break.
f9300c3
to
6e6b3c7
Compare
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.
Even just seeing those arrays as objects in a PR makes things feel safer
@@ -59,7 +59,8 @@ | |||
"config": { | |||
"discard-changes": true, | |||
"allow-plugins": { | |||
"composer/package-versions-deprecated": true | |||
"composer/package-versions-deprecated": true, | |||
"dealerdirect/phpcodesniffer-composer-installer": true |
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.
Every time I see this I get a fright
@@ -0,0 +1,11 @@ | |||
<?php | |||
declare( strict_types=1 ); |
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.
There should be a line break before this, I think?
Split interface for donor and template mailer Use value objects instead of arrays This is a backwards-breaking change that needs new implementations in the Fundraising Application
6e6b3c7
to
95178dc
Compare
Create adapter classes that transform the templateArguments objects into arrays, passing them on to the TemplateBasedMailer which only accepts arrays. This is an adaptation for wmde/fundraising-donations#244
Split interface for donor and template mailer
Use value objects instead of arrays
This is a backwards-breaking change that needs new implementations in
the Fundraising Application