Skip to content
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

Improve the build and fix it in the same time 🖖 #184

Merged
merged 1 commit into from
Jan 2, 2023

Conversation

Zales0123
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

@Zales0123 Zales0123 requested a review from a team as a code owner December 1, 2022 12:32
@Zales0123 Zales0123 added the Bug Confirmed bugs or bugfixes. label Dec 1, 2022
@lchrusciel lchrusciel closed this Jan 2, 2023
@lchrusciel lchrusciel reopened this Jan 2, 2023
@Zales0123 Zales0123 merged commit 7052caf into Sylius:2.0 Jan 2, 2023
@Zales0123 Zales0123 deleted the fixes-after-adapters-pass-changes branch January 2, 2023 16:06
GSadee added a commit that referenced this pull request Jan 9, 2023
This PR was merged into the 2.1 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | it probably need [this](#184) to be merged before for the green build
| License         | MIT

While the default configuration-based email creation is sufficient in most cases, it's not uncommon for one to need it conditional or dynamic in any other way. I thought about modifying the EmailProvider::getEmail(string $code)` method to accept the `array $data` argument, but thought it would be more extendible to provide a set of _modifiers_ services, that could be easily implemented in the application. Maybe it should also contain the `support(EmailInterface $email): bool` method, to not force checking the email code inside the `modify` method 🤔 

Let me know what you think about such a feature 🖖 I will add some documentation to this feature if we would like to proceed with it 🫡 

Commits
-------

8459e7e Test email modification
8253cb8 Use composite email modifier in Sender
cdfefa0 Implement test email modifier to test the new functionality
1574bc7 CS fixes
9f40a59 Use already existing assertion for sender email
d837ca7 Pass email data as modifiers factors
56ea3ee Temporarily supress psalm error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants