8000 Add Notifier component documentation · symfony/symfony-docs@7f87004 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f87004

Browse files
committed
Add Notifier component documentation
This merges the work of #12678, #12846, #12963 and finishes the main Notifier guide.
1 parent 6dc3f13 commit 7f87004

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

notifier.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,11 @@ very high and the recipient has a phonenumber::
495495

496496
public function getChannels(Recipient $recipient)
497497
{
498-
if ($this->price > 10000 && $receiver->hasPhone()) {
498+
if (
499+
$this->price > 10000
500+
&& $recipient instanceof AdminRecipient
501+
&& null !== $recipient->getPhone()
502+
) {
499503
return ['sms', 'email'];
500504
}
501505

0 commit comments

Comments
 (0)
0