Skip to content

Commit

Permalink
[Notifier] moved the deprecation to the factory
Browse files Browse the repository at this point in the history
  • Loading branch information
PEtanguy committed May 24, 2023
1 parent 13a49d4 commit b4dcd18
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@
->set('notifier.transport_factory.simple-textin', Bridge\SimpleTextin\SimpleTextinTransportFactory::class)
->parent('notifier.transport_factory.abstract')
->tag('texter.transport_factory')

->set('notifier.transport_factory.click-send', Bridge\ClickSend\ClickSendTransportFactory::class)
->parent('notifier.transport_factory.abstract')
->tag('texter.transport_factory')

->set('notifier.transport_factory.smsmode', Bridge\Smsmode\SmsmodeTransportFactory::class)
->parent('notifier.transport_factory.abstract')
->tag('texter.transport_factory')
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Notifier/Bridge/Brevo/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ CHANGELOG
6.3
---

* Added the bridge
* Added the bridge as a replacement of the Sendinblue one.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Notifier/Bridge/Brevo/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "symfony/brevo-notifier",
"type": "symfony-notifier-bridge",
"description": "Symfony Brevo Notifier Bridge",
"description": "Symfony Brevo Notifier Bridge - formerly Sendinblue",
"keywords": ["brevo", "notifier"],
"homepage": "https://symfony.com",
"license": "MIT",
Expand Down
5 changes: 5 additions & 0 deletions src/Symfony/Component/Notifier/Bridge/Sendinblue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

6.3
---

* Deprecated the bridge, replaced it with Brevo in reaction to their rebranding.

6.2
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace Symfony\Component\Notifier\Bridge\Sendinblue;

use Symfony\Component\Notifier\Bridge\Brevo\BrevoTransport;
use Symfony\Component\Notifier\Exception\TransportException;
use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException;
use Symfony\Component\Notifier\Message\MessageInterface;
Expand All @@ -22,8 +21,6 @@
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
use Symfony\Contracts\HttpClient\HttpClientInterface;

trigger_deprecation('symfony/sendinblue-notifier', '6.3', 'The "%s" class is deprecated, use "%s" instead.', SendinblueTransport::class, BrevoTransport::class);

/**
* @author Pierre Tondereau <pierre.tondereau@gmail.com>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
use Symfony\Component\Notifier\Transport\AbstractTransportFactory;
use Symfony\Component\Notifier\Transport\Dsn;

trigger_deprecation('symfony/sendinblue-notifier', '6.3', 'The "%s" class is deprecated, use "%s" instead.', SendinblueTransport::class, BrevoTransport::class);

/**
* @author Pierre Tondereau <pierre.tondereau@protonmail.com>
*
Expand All @@ -27,6 +25,8 @@ final class SendinblueTransportFactory extends AbstractTransportFactory
{
public function create(Dsn $dsn): SendinblueTransport
{
trigger_deprecation('symfony/sendinblue-notifier', '6.3', 'The "%s" class is deprecated, use "%s" instead.', SendinblueTransport::class, BrevoTransport::class);

$scheme = $dsn->getScheme();

if ('sendinblue' !== $scheme) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "symfony/sendinblue-notifier",
"type": "symfony-notifier-bridge",
"description": "Symfony Sendinblue Notifier Bridge",
"description": "Symfony Sendinblue Notifier Bridge - deprecated",
"keywords": ["sms", "sendinblue", "notifier"],
"homepage": "https://symfony.com",
"license": "MIT",
Expand Down

0 comments on commit b4dcd18

Please sign in to comment.