8000 Fix customize notification example · symfony/symfony-docs@f6d8eae · GitHub
[go: up one dir, main page]

Skip to content

Commit f6d8eae

Browse files
committed
Fix customize notification example
1 parent 96960d4 commit f6d8eae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

notifier.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ Customize Notifications
477477
You can extend the ``Notification`` or ``Recipient`` base classes to
478478
customize their behavior. For instance, you can overwrite the
479479
``getChannels()`` method to only return ``sms`` if the invoice price is
480-
very high and the recipient has a phonenumber::
480+
very high and the recipient has a phone number::
481481

482482
namespace App\Notifier;
483483

@@ -500,10 +500,10 @@ very high and the recipient has a phonenumber::
500500
&& $recipient instanceof AdminRecipient
501501
&& null !== $recipient->getPhone()
502502
) {
503-
return ['sms', 'email'];
503+
return ['sms'];
504504
}
505505

506-
return 'email';
506+
return ['email'];
507507
}
508508
}
509509

0 commit comments

Comments
 (0)
0