Skip to content

Commit 1eae08e

Browse files
bug #60885 [Notifier] Update fake SMS transports to use contracts event dispatcher (paulferrett)
This PR was merged into the 6.4 branch. Discussion ---------- [Notifier] Update fake SMS transports to use contracts event dispatcher | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT 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. Commits ------- 17b2a18 [Notifier] Update fake SMS transports to use contracts event dispatcher.
2 parents 8cfe9b3 + 17b2a18 commit 1eae08e

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)