Skip to content

Fix customize notification example #13177

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

Merged
merged 1 commit into from
Feb 18, 2020
Merged

Conversation

jschaedl
Copy link
Contributor

No description provided.

}

return 'email';
return ['email'];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Notification::getChannels(...) methods needs to return an array.

@@ -500,10 +500,10 @@ very high and the recipient has a phonenumber::
&& $recipient instanceof AdminRecipient
&& null !== $recipient->getPhone()
) {
return ['sms', 'email'];
return ['sms'];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example is about returning the sms channel only in case the price is high and the recipient has a phone number.

@OskarStark
Copy link
Contributor

Can you change this line too:

- very high and the recipient has a phonenumber::
+ very high and the recipient has a phone number::

@jschaedl
Copy link
Contributor Author

@OskarStark fixed

@javiereguiluz
Copy link
Member

Thank you Jan.

javiereguiluz added a commit that referenced this pull request Feb 18, 2020
This PR was merged into the 5.0 branch.

Discussion
----------

Fix customize notification example

Commits
-------

f6d8eae Fix customize notification example
@javiereguiluz javiereguiluz merged commit f6d8eae into symfony:5.0 Feb 18, 2020
@jschaedl jschaedl deleted the patch-10 branch February 18, 2020 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants