Skip to content

Commit ae9867b

Browse files
committed
[Notifier] moved the deprecation to the factory
1 parent 9622d22 commit ae9867b

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

src/Symfony/Component/Notifier/Bridge/Brevo/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ CHANGELOG
44
6.3
55
---
66

7-
* Added the bridge
7+
* Added the bridge as a replacement of the Sendinblue one.

src/Symfony/Component/Notifier/Bridge/Brevo/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "symfony/brevo-notifier",
33
"type": "symfony-notifier-bridge",
4-
"description": "Symfony Brevo Notifier Bridge",
4+
"description": "Symfony Brevo Notifier Bridge - formerly Sendinblue",
55
"keywords": ["brevo", "notifier"],
66
"homepage": "https://symfony.com",
77
"license": "MIT",

src/Symfony/Component/Notifier/Bridge/Sendinblue/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.3
5+
---
6+
7+
* Deprecated the bridge, replaced it with Brevo in reaction to their rebranding.
8+
49
6.2
510
---
611

src/Symfony/Component/Notifier/Bridge/Sendinblue/SendinblueTransport.php

-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

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

14-
use Symfony\Component\Notifier\Bridge\Brevo\BrevoTransport;
1514
use Symfony\Component\Notifier\Exception\TransportException;
1615
use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException;
1716
use Symfony\Component\Notifier\Message\MessageInterface;
@@ -22,8 +21,6 @@
2221
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
2322
use Symfony\Contracts\HttpClient\HttpClientInterface;
2423

25-
trigger_deprecation('symfony/sendinblue-notifier', '6.3', 'The "%s" class is deprecated, use "%s" instead.', SendinblueTransport::class, BrevoTransport::class);
26-
2724
/**
2825
* @author Pierre Tondereau <pierre.tondereau@gmail.com>
2926
*

src/Symfony/Component/Notifier/Bridge/Sendinblue/SendinblueTransportFactory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
use Symfony\Component\Notifier\Transport\AbstractTransportFactory;
1717
use Symfony\Component\Notifier\Transport\Dsn;
1818

19-
trigger_deprecation('symfony/sendinblue-notifier', '6.3', 'The "%s" class is deprecated, use "%s" instead.', SendinblueTransport::class, BrevoTransport::class);
20-
2119
/**
2220
* @author Pierre Tondereau <pierre.tondereau@protonmail.com>
2321
*
@@ -27,6 +25,8 @@ final class SendinblueTransportFactory extends AbstractTransportFactory
2725
{
2826
public function create(Dsn $dsn): SendinblueTransport
2927
{
28+
trigger_deprecation('symfony/sendinblue-notifier', '6.3', 'The "%s" class is deprecated, use "%s" instead.', SendinblueTransport::class, BrevoTransport::class);
29+
3030
$scheme = $dsn->getScheme();
3131

3232
if ('sendinblue' !== $scheme) {

src/Symfony/Component/Notifier/Bridge/Sendinblue/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "symfony/sendinblue-notifier",
33
"type": "symfony-notifier-bridge",
4-
"description": "Symfony Sendinblue Notifier Bridge",
4+
"description": "Symfony Sendinblue Notifier Bridge - deprecated",
55
"keywords": ["sms", "sendinblue", "notifier"],
66
"homepage": "https://symfony.com",
77
"license": "MIT",

0 commit comments

Comments
 (0)