Skip to content

Commit dc7f6f7

Browse files
committed
feature #31956 [Mailer] Changed EventDispatcherInterface dependency from Component to Contracts (Koc)
This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] Changed EventDispatcherInterface dependency from Component to Contracts | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | almost yes, see #31956 (comment) | Fixed tickets | - | License | MIT | Doc PR | - Follow up of #31946 (comment) . I hope this kind of changes are allowed for experimental components. BTW, @nicolas-grekas , why Psr14 interface is optional for Contract's `EventDispatcherInterface https://github.com/symfony/symfony/blob/4.4/src/Symfony/Contracts/EventDispatcher/EventDispatcherInterface.php#L16 ? Commits ------- bdb6217 Changed EventDispatcherInterface dependency from Component to Contracts
2 parents 71731c6 + bdb6217 commit dc7f6f7

30 files changed

+40
-34
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,11 +12,11 @@
1212
namespace Symfony\Component\Mailer\Bridge\Amazon\Http\Api;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1615
use Symfony\Component\Mailer\Exception\TransportException;
1716
use Symfony\Component\Mailer\SmtpEnvelope;
1817
use Symfony\Component\Mailer\Transport\Http\Api\AbstractApiTransport;
1918
use Symfony\Component\Mime\Email;
19+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2020
use Symfony\Contracts\HttpClient\HttpClientInterface;
2121

2222
/**

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

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1615
use Symfony\Component\Mailer\Exception\TransportException;
1716
use Symfony\Component\Mailer\SentMessage;
1817
use Symfony\Component\Mailer\Transport\Http\AbstractHttpTransport;
18+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1919
use Symfony\Contracts\HttpClient\HttpClientInterface;
2020

2121
/**

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

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

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

1818
/**
1919
* @author Kevin Verschaeve

src/Symfony/Component/Mailer/Bridge/Amazon/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^7.1.3",
20-
"symfony/mailer": "^4.3|^5.0"
20+
"symfony/mailer": "^4.4|^5.0"
2121
},
2222
"require-dev": {
2323
"symfony/http-client": "^4.3|^5.0"

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

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

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

1818
/**
1919
* @author Kevin Verschaeve

src/Symfony/Component/Mailer/Bridge/Google/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^7.1.3",
20-
"symfony/mailer": "^4.3|^5.0"
20+
"symfony/mailer": "^4.4|^5.0"
2121
},
2222
"require-dev": {
2323
"symfony/http-client": "^4.3|^5.0"

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,11 +12,11 @@
1212
namespace Symfony\Component\Mailer\Bridge\Mailchimp\Http\Api;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1615
use Symfony\Component\Mailer\Exception\TransportException;
1716
use Symfony\Component\Mailer\SmtpEnvelope;
1817
use Symfony\Component\Mailer\Transport\Http\Api\AbstractApiTransport;
1918
use Symfony\Component\Mime\Email;
19+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2020
use Symfony\Contracts\HttpClient\HttpClientInterface;
2121

2222
/**

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

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

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1615
use Symfony\Component\Mailer\Exception\TransportException;
1716
use Symfony\Component\Mailer\SentMessage;
1817
use Symfony\Component\Mailer\Transport\Http\AbstractHttpTransport;
18+
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1919
use Symfony\Contracts\HttpClient\HttpClientInterface;
2020

2121
/**

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

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

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

1818
/**
1919
* @author Kevin Verschaeve

src/Symfony/Component/Mailer/Bridge/Mailchimp/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^7.1.3",
20-
"symfony/mailer": "^4.3|^5.0"
20+
"symfony/mailer": "^4.4|^5.0"
2121
},
2222
"require-dev": {
2323
"symfony/http-client": "^4.3|^5.0"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy