Skip to content

Commit 7698d0f

Browse files
committed
[Notifier] Add missing imports
1 parent 7b46948 commit 7698d0f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

notifier.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ Symfony provides two types of recipients:
389389

390390
.. versionadded:: 5.2
391391

392-
The `AdminRecipient` class was removed in Symfony 5.2, you should use
393-
`Recipient` instead.
392+
The ``AdminRecipient`` class was removed in Symfony 5.2, you should use
393+
``Recipient`` instead.
394394

395395
Configuring Channel Policies
396396
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -506,7 +506,8 @@ very high and the recipient has a phone number::
506506
namespace App\Notifier;
507507

508508
use Symfony\Component\Notifier\Notification\Notification;
509-
use Symfony\Component\Notifier\Recipient\Recipient;
509+
use Symfony\Component\Notifier\Recipient\RecipientInterface;
510+
use Symfony\Component\Notifier\Recipient\SmsRecipientInterface;
510511

511512
class InvoiceNotification extends Notification
512513
{
@@ -545,7 +546,7 @@ and its ``asChatMessage()`` method::
545546
use Symfony\Component\Notifier\Message\ChatMessage;
546547
use Symfony\Component\Notifier\Notification\ChatNotificationInterface;
547548
use Symfony\Component\Notifier\Notification\Notification;
548-
use Symfony\Component\Notifier\Recipient\Recipient;
549+
use Symfony\Component\Notifier\Recipient\SmsRecipientInterface;
549550

550551
class InvoiceNotification extends Notification implements ChatNotificationInterface
551552
{

0 commit comments

Comments
 (0)