Skip to content

Commit 17b2a18

Browse files
committed
[Notifier] Update fake SMS transports to use contracts event dispatcher.
Update FakeSmsLoggerTransport and FakeSmsEmailTransport to depend on Symfony\Contracts\EventDispatcher\EventDispatcherInterface instead of Symfony\Component\EventDispatcher\EventDispatcherInterface. This ensures compatibility with internal projects with decorated dispatchers.
1 parent 2da9a7d commit 17b2a18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Notifier/Bridge/FakeSms/FakeSmsEmailTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Notifier\Bridge\FakeSms;
1313

14-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1514
use Symfony\Component\Mailer\Exception\TransportExceptionInterface;
1615
use Symfony\Component\Mailer\MailerInterface;
1716
use Symfony\Component\Mime\Email;
@@ -20,6 +19,7 @@
2019
use Symfony\Component\Notifier\Message\SentMessage;
2120
use Symfony\Component\Notifier\Message\SmsMessage;
2221
use Symfony\Component\Notifier\Transport\AbstractTransport;
22+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2323
use Symfony\Contracts\HttpClient\HttpClientInterface;
2424

2525
/**

src/Symfony/Component/Notifier/Bridge/FakeSms/FakeSmsLoggerTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
namespace Symfony\Component\Notifier\Bridge\FakeSms;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1615
use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException;
1716
use Symfony\Component\Notifier\Message\MessageInterface;
1817
use Symfony\Component\Notifier\Message\SentMessage;
1918
use Symfony\Component\Notifier\Message\SmsMessage;
2019
use Symfony\Component\Notifier\Transport\AbstractTransport;
20+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2121
use Symfony\Contracts\HttpClient\HttpClientInterface;
2222

2323
/**

0 commit comments

Comments
 (0)