File tree 30 files changed +40
-34
lines changed
src/Symfony/Component/Mailer
30 files changed +40
-34
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Amazon \Http \Api ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Exception \TransportException ;
17
16
use Symfony \Component \Mailer \SmtpEnvelope ;
18
17
use Symfony \Component \Mailer \Transport \Http \Api \AbstractApiTransport ;
19
18
use Symfony \Component \Mime \Email ;
19
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
20
20
use Symfony \Contracts \HttpClient \HttpClientInterface ;
21
21
22
22
/**
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Amazon \Http ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Exception \TransportException ;
17
16
use Symfony \Component \Mailer \SentMessage ;
18
17
use Symfony \Component \Mailer \Transport \Http \AbstractHttpTransport ;
18
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
19
19
use Symfony \Contracts \HttpClient \HttpClientInterface ;
20
20
21
21
/**
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Amazon \Smtp ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Transport \Smtp \EsmtpTransport ;
16
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
17
17
18
18
/**
19
19
* @author Kevin Verschaeve
Original file line number Diff line number Diff line change 17
17
],
18
18
"require" : {
19
19
"php" : " ^7.1.3" ,
20
- "symfony/mailer" : " ^4.3 |^5.0"
20
+ "symfony/mailer" : " ^4.4 |^5.0"
21
21
},
22
22
"require-dev" : {
23
23
"symfony/http-client" : " ^4.3|^5.0"
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Google \Smtp ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Transport \Smtp \EsmtpTransport ;
16
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
17
17
18
18
/**
19
19
* @author Kevin Verschaeve
Original file line number Diff line number Diff line change 17
17
],
18
18
"require" : {
19
19
"php" : " ^7.1.3" ,
20
- "symfony/mailer" : " ^4.3 |^5.0"
20
+ "symfony/mailer" : " ^4.4 |^5.0"
21
21
},
22
22
"require-dev" : {
23
23
"symfony/http-client" : " ^4.3|^5.0"
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Mailchimp \Http \Api ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Exception \TransportException ;
17
16
use Symfony \Component \Mailer \SmtpEnvelope ;
18
17
use Symfony \Component \Mailer \Transport \Http \Api \AbstractApiTransport ;
19
18
use Symfony \Component \Mime \Email ;
19
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
20
20
use Symfony \Contracts \HttpClient \HttpClientInterface ;
21
21
22
22
/**
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Mailchimp \Http ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Exception \TransportException ;
17
16
use Symfony \Component \Mailer \SentMessage ;
18
17
use Symfony \Component \Mailer \Transport \Http \AbstractHttpTransport ;
18
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
19
19
use Symfony \Contracts \HttpClient \HttpClientInterface ;
20
20
21
21
/**
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Mailchimp \Smtp ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Transport \Smtp \EsmtpTransport ;
16
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
17
17
18
18
/**
19
19
* @author Kevin Verschaeve
Original file line number Diff line number Diff line change 17
17
],
18
18
"require" : {
19
19
"php" : " ^7.1.3" ,
20
- "symfony/mailer" : " ^4.3 |^5.0"
20
+ "symfony/mailer" : " ^4.4 |^5.0"
21
21
},
22
22
"require-dev" : {
23
23
"symfony/http-client" : " ^4.3|^5.0"
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Mailgun \Http \Api ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Exception \TransportException ;
17
16
use Symfony \Component \Mailer \SmtpEnvelope ;
18
17
use Symfony \Component \Mailer \Transport \Http \Api \AbstractApiTransport ;
19
18
use Symfony \Component \Mime \Email ;
20
19
use Symfony \Component \Mime \Part \Multipart \FormDataPart ;
20
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
21
21
use Symfony \Contracts \HttpClient \HttpClientInterface ;
22
22
23
23
/**
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Mailgun \Http ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Exception \TransportException ;
17
16
use Symfony \Component \Mailer \SentMessage ;
18
17
use Symfony \Component \Mailer \Transport \Http \AbstractHttpTransport ;
19
18
use Symfony \Component \Mime \Part \DataPart ;
20
19
use Symfony \Component \Mime \Part \Multipart \FormDataPart ;
20
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
21
21
use Symfony \Contracts \HttpClient \HttpClientInterface ;
22
22
23
23
/**
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Mailgun \Smtp ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Transport \Smtp \EsmtpTransport ;
16
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
17
17
18
18
/**
19
19
* @author Kevin Verschaeve
Original file line number Diff line number Diff line change 17
17
],
18
18
"require" : {
19
19
"php" : " ^7.1.3" ,
20
- "symfony/mailer" : " ^4.3 |^5.0"
20
+ "symfony/mailer" : " ^4.4 |^5.0"
21
21
},
22
22
"require-dev" : {
23
23
"symfony/http-client" : " ^4.3|^5.0"
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Postmark \Http \Api ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Exception \TransportException ;
17
16
use Symfony \Component \Mailer \SmtpEnvelope ;
18
17
use Symfony \Component \Mailer \Transport \Http \Api \AbstractApiTransport ;
19
18
use Symfony \Component \Mime \Email ;
19
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
20
20
use Symfony \Contracts \HttpClient \HttpClientInterface ;
21
21
22
22
/**
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Postmark \Smtp ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Transport \Smtp \EsmtpTransport ;
16
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
17
17
18
18
/**
19
19
* @author Kevin Verschaeve
Original file line number Diff line number Diff line change 17
17
],
18
18
"require" : {
19
19
"php" : " ^7.1.3" ,
20
- "symfony/mailer" : " ^4.3 |^5.0"
20
+ "symfony/mailer" : " ^4.4 |^5.0"
21
21
},
22
22
"require-dev" : {
23
23
"symfony/http-client" : " ^4.3|^5.0"
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Sendgrid \Http \Api ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Exception \TransportException ;
17
16
use Symfony \Component \Mailer \SmtpEnvelope ;
18
17
use Symfony \Component \Mailer \Transport \Http \Api \AbstractApiTransport ;
19
18
use Symfony \Component \Mime \Address ;
20
19
use Symfony \Component \Mime \Email ;
20
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
21
21
use Symfony \Contracts \HttpClient \HttpClientInterface ;
22
22
23
23
/**
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Bridge \Sendgrid \Smtp ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Transport \Smtp \EsmtpTransport ;
16
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
17
17
18
18
/**
19
19
* @author Kevin Verschaeve
Original file line number Diff line number Diff line change 17
17
],
18
18
"require" : {
19
19
"php" : " ^7.1.3" ,
20
- "symfony/mailer" : " ^4.3 |^5.0"
20
+ "symfony/mailer" : " ^4.4 |^5.0"
21
21
},
22
22
"require-dev" : {
23
23
"symfony/http-client" : " ^4.3|^5.0"
Original file line number Diff line number Diff line change 1
1
CHANGELOG
2
2
=========
3
3
4
+ 4.4.0
5
+ -----
6
+
7
+ * [ BC BREAK] Transports depend on ` Symfony\Contracts\EventDispatcher\EventDispatcherInterface `
8
+ instead of ` Symfony\Component\EventDispatcher\EventDispatcherInterface ` .
9
+
4
10
4.3.0
5
11
-----
6
12
Original file line number Diff line number Diff line change 13
13
14
14
use PHPUnit \Framework \TestCase ;
15
15
use Psr \Log \LoggerInterface ;
16
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
17
16
use Symfony \Component \Mailer \Bridge \Amazon ;
18
17
use Symfony \Component \Mailer \Bridge \Google ;
19
18
use Symfony \Component \Mailer \Bridge \Mailchimp ;
23
22
use Symfony \Component \Mailer \Exception \InvalidArgumentException ;
24
23
use Symfony \Component \Mailer \Exception \LogicException ;
25
24
use Symfony \Component \Mailer \Transport ;
25
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
26
26
use Symfony \Contracts \HttpClient \HttpClientInterface ;
27
27
28
28
class TransportTest extends TestCase
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Bridge \Amazon ;
17
16
use Symfony \Component \Mailer \Bridge \Google ;
18
17
use Symfony \Component \Mailer \Bridge \Mailchimp ;
22
21
use Symfony \Component \Mailer \Exception \InvalidArgumentException ;
23
22
use Symfony \Component \Mailer \Exception \LogicException ;
24
23
use Symfony \Component \Mailer \Transport \TransportInterface ;
24
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
25
25
use Symfony \Contracts \HttpClient \HttpClientInterface ;
26
26
27
27
/**
Original file line number Diff line number Diff line change 14
14
use Psr \Log \LoggerInterface ;
15
15
use Psr \Log \NullLogger ;
16
16
use Symfony \Component \EventDispatcher \EventDispatcher ;
17
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
18
17
use Symfony \Component \Mailer \DelayedSmtpEnvelope ;
19
18
use Symfony \Component \Mailer \Event \MessageEvent ;
20
19
use Symfony \Component \Mailer \Exception \TransportException ;
21
20
use Symfony \Component \Mailer \SentMessage ;
22
21
use Symfony \Component \Mailer \SmtpEnvelope ;
23
22
use Symfony \Component \Mime \Address ;
24
23
use Symfony \Component \Mime \RawMessage ;
24
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
25
25
26
26
/**
27
27
* @author Fabien Potencier <[email protected] >
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Transport \Http ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \HttpClient \HttpClient ;
17
16
use Symfony \Component \Mailer \Transport \AbstractTransport ;
17
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
18
18
use Symfony \Contracts \HttpClient \HttpClientInterface ;
19
19
20
20
/**
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Transport \Http \Api ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \HttpClient \HttpClient ;
17
16
use Symfony \Component \Mailer \Exception \RuntimeException ;
18
17
use Symfony \Component \Mailer \SentMessage ;
21
20
use Symfony \Component \Mime \Address ;
22
21
use Symfony \Component \Mime \Email ;
23
22
use Symfony \Component \Mime \MessageConverter ;
23
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
24
24
use Symfony \Contracts \HttpClient \HttpClientInterface ;
25
25
26
26
/**
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Transport ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \SentMessage ;
17
16
use Symfony \Component \Mailer \SmtpEnvelope ;
18
17
use Symfony \Component \Mailer \Transport \Smtp \SmtpTransport ;
19
18
use Symfony \Component \Mailer \Transport \Smtp \Stream \AbstractStream ;
20
19
use Symfony \Component \Mailer \Transport \Smtp \Stream \ProcessStream ;
21
20
use Symfony \Component \Mime \RawMessage ;
21
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
22
22
23
23
/**
24
24
* SendmailTransport for sending mail through a Sendmail/Postfix (etc..) binary.
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Transport \Smtp ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Exception \TransportException ;
17
16
use Symfony \Component \Mailer \Exception \TransportExceptionInterface ;
18
17
use Symfony \Component \Mailer \Transport \Smtp \Auth \AuthenticatorInterface ;
19
18
use Symfony \Component \Mailer \Transport \Smtp \Stream \SocketStream ;
19
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
20
20
21
21
/**
22
22
* Sends Emails over SMTP with ESMTP support.
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Mailer \Transport \Smtp ;
13
13
14
14
use Psr \Log \LoggerInterface ;
15
- use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
16
15
use Symfony \Component \Mailer \Exception \LogicException ;
17
16
use Symfony \Component \Mailer \Exception \TransportException ;
18
17
use Symfony \Component \Mailer \Exception \TransportExceptionInterface ;
22
21
use Symfony \Component \Mailer \Transport \Smtp \Stream \AbstractStream ;
23
22
use Symfony \Component \Mailer \Transport \Smtp \Stream \SocketStream ;
24
23
use Symfony \Component \Mime \RawMessage ;
24
+ use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
25
25
26
26
/**
27
27
* Sends emails over SMTP.
Original file line number Diff line number Diff line change 23
23
"symfony/mime" : " ^4.3|^5.0"
24
24
},
25
25
"require-dev" : {
26
- "symfony/amazon-mailer" : " ^4.3 |^5.0" ,
27
- "symfony/google-mailer" : " ^4.3 |^5.0" ,
26
+ "symfony/amazon-mailer" : " ^4.4 |^5.0" ,
27
+ "symfony/google-mailer" : " ^4.4 |^5.0" ,
28
28
"symfony/http-client-contracts" : " ^1.1" ,
29
- "symfony/mailgun-mailer" : " ^4.3 |^5.0" ,
30
- "symfony/mailchimp-mailer" : " ^4.3 |^5.0" ,
31
- "symfony/postmark-mailer" : " ^4.3 |^5.0" ,
32
- "symfony/sendgrid-mailer" : " ^4.3 |^5.0"
29
+ "symfony/mailgun-mailer" : " ^4.4 |^5.0" ,
30
+ "symfony/mailchimp-mailer" : " ^4.4 |^5.0" ,
31
+ "symfony/postmark-mailer" : " ^4.4 |^5.0" ,
32
+ "symfony/sendgrid-mailer" : " ^4.4 |^5.0"
33
33
},
34
34
"autoload" : {
35
35
"psr-4" : { "Symfony\\ Component\\ Mailer\\ " : " " },
You can’t perform that action at this time.
0 commit comments