Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3efc9e

Browse files
committed
Changed EventDispatcherInterface dependency from Component to Contracts
1 parent 82d5ff0 commit e3efc9e

23 files changed

+28
-22
lines changed

src/Symfony/Component/Mailer/Bridge/Amazon/Http/Api/SesTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Mailer\Bridge\Amazon\Http\Api;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Exception\TransportException;
1717
use Symfony\Component\Mailer\SmtpEnvelope;
1818
use Symfony\Component\Mailer\Transport\Http\Api\AbstractApiTransport;

src/Symfony/Component/Mailer/Bridge/Amazon/Http/SesTransport.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Exception\TransportException;
1717
use Symfony\Component\Mailer\SentMessage;
1818
use Symfony\Component\Mailer\Transport\Http\AbstractHttpTransport;

src/Symfony/Component/Mailer/Bridge/Amazon/Smtp/SesTransport.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
1717

1818
/**

src/Symfony/Component/Mailer/Bridge/Google/Smtp/GmailTransport.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
1717

1818
/**

src/Symfony/Component/Mailer/Bridge/Mailchimp/Http/Api/MandrillTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Mailer\Bridge\Mailchimp\Http\Api;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Exception\TransportException;
1717
use Symfony\Component\Mailer\SmtpEnvelope;
1818
use Symfony\Component\Mailer\Transport\Http\Api\AbstractApiTransport;

src/Symfony/Component/Mailer/Bridge/Mailchimp/Http/MandrillTransport.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Exception\TransportException;
1717
use Symfony\Component\Mailer\SentMessage;
1818
use Symfony\Component\Mailer\Transport\Http\AbstractHttpTransport;

src/Symfony/Component/Mailer/Bridge/Mailchimp/Smtp/MandrillTransport.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
1717

1818
/**

src/Symfony/Component/Mailer/Bridge/Mailgun/Http/Api/MailgunTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Mailer\Bridge\Mailgun\Http\Api;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Exception\TransportException;
1717
use Symfony\Component\Mailer\SmtpEnvelope;
1818
use Symfony\Component\Mailer\Transport\Http\Api\AbstractApiTransport;

src/Symfony/Component/Mailer/Bridge/Mailgun/Http/MailgunTransport.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Exception\TransportException;
1717
use Symfony\Component\Mailer\SentMessage;
1818
use Symfony\Component\Mailer\Transport\Http\AbstractHttpTransport;

src/Symfony/Component/Mailer/Bridge/Mailgun/Smtp/MailgunTransport.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
1717

1818
/**

src/Symfony/Component/Mailer/Bridge/Postmark/Http/Api/PostmarkTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Mailer\Bridge\Postmark\Http\Api;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Exception\TransportException;
1717
use Symfony\Component\Mailer\SmtpEnvelope;
1818
use Symfony\Component\Mailer\Transport\Http\Api\AbstractApiTransport;

src/Symfony/Component/Mailer/Bridge/Postmark/Smtp/PostmarkTransport.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
1717

1818
/**

src/Symfony/Component/Mailer/Bridge/Sendgrid/Http/Api/SendgridTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Mailer\Bridge\Sendgrid\Http\Api;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Exception\TransportException;
1717
use Symfony\Component\Mailer\SmtpEnvelope;
1818
use Symfony\Component\Mailer\Transport\Http\Api\AbstractApiTransport;

src/Symfony/Component/Mailer/Bridge/Sendgrid/Smtp/SendgridTransport.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
1717

1818
/**

src/Symfony/Component/Mailer/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGELOG
22
=========
33

4+
4.4.0
5+
-----
6+
7+
* [BC BREAK] Transports depend on `Symfony\Contracts\EventDispatcher\EventDispatcherInterface`
8+
instead of `Symfony\Component\EventDispatcher\EventDispatcherInterface`.
9+
410
4.3.0
511
-----
612

src/Symfony/Component/Mailer/Tests/TransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Psr\Log\LoggerInterface;
16-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
16+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1717
use Symfony\Component\Mailer\Bridge\Amazon;
1818
use Symfony\Component\Mailer\Bridge\Google;
1919
use Symfony\Component\Mailer\Bridge\Mailchimp;

src/Symfony/Component/Mailer/Transport.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Bridge\Amazon;
1717
use Symfony\Component\Mailer\Bridge\Google;
1818
use Symfony\Component\Mailer\Bridge\Mailchimp;

src/Symfony/Component/Mailer/Transport/AbstractTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Psr\Log\LoggerInterface;
1515
use Psr\Log\NullLogger;
1616
use Symfony\Component\EventDispatcher\EventDispatcher;
17-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
17+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1818
use Symfony\Component\Mailer\DelayedSmtpEnvelope;
1919
use Symfony\Component\Mailer\Event\MessageEvent;
2020
use Symfony\Component\Mailer\Exception\TransportException;

src/Symfony/Component/Mailer/Transport/Http/AbstractHttpTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Mailer\Transport\Http;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\HttpClient\HttpClient;
1717
use Symfony\Component\Mailer\Transport\AbstractTransport;
1818
use Symfony\Contracts\HttpClient\HttpClientInterface;

src/Symfony/Component/Mailer/Transport/Http/Api/AbstractApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Mailer\Transport\Http\Api;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\HttpClient\HttpClient;
1717
use Symfony\Component\Mailer\Exception\RuntimeException;
1818
use Symfony\Component\Mailer\SentMessage;

src/Symfony/Component/Mailer/Transport/SendmailTransport.php

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\SentMessage;
1717
use Symfony\Component\Mailer\SmtpEnvelope;
1818
use Symfony\Component\Mailer\Transport\Smtp\SmtpTransport;

src/Symfony/Component/Mailer/Transport/Smtp/EsmtpTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Mailer\Transport\Smtp;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Exception\TransportException;
1717
use Symfony\Component\Mailer\Exception\TransportExceptionInterface;
1818
use Symfony\Component\Mailer\Transport\Smtp\Auth\AuthenticatorInterface;

src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Mailer\Transport\Smtp;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
15+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Mailer\Exception\LogicException;
1717
use Symfony\Component\Mailer\Exception\TransportException;
1818
use Symfony\Component\Mailer\Exception\TransportExceptionInterface;

0 commit comments

Comments
 (0)