Skip to content

Commit 8937020

Browse files
committed
[Mailer] deprecate Sendinblue Mailer
1 parent 795d479 commit 8937020

File tree

10 files changed

+24
-4
lines changed

10 files changed

+24
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
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 deprecated Sendiblue one.

src/Symfony/Component/Mailer/Bridge/Brevo/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2019-present Fabien Potencier
1+
Copyright (c) 2023-present Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

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

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

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

Lines changed: 5 additions & 0 deletions
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 and replaced it with Brevo in reaction to their rebranding.
8+
49
5.2.0
510
-----
611

src/Symfony/Component/Mailer/Bridge/Sendinblue/Tests/Transport/SendinblueApiTransportTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
use Symfony\Component\Mime\Part\DataPart;
2525
use Symfony\Contracts\HttpClient\ResponseInterface;
2626

27+
/**
28+
* @group legacy
29+
*/
2730
class SendinblueApiTransportTest extends TestCase
2831
{
2932
/**

src/Symfony/Component/Mailer/Bridge/Sendinblue/Tests/Transport/SendinblueTransportFactoryTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
use Symfony\Component\Mailer\Transport\Dsn;
2121
use Symfony\Component\Mailer\Transport\TransportFactoryInterface;
2222

23+
/**
24+
* @group legacy
25+
*/
2326
class SendinblueTransportFactoryTest extends TransportFactoryTestCase
2427
{
2528
public function getFactory(): TransportFactoryInterface

src/Symfony/Component/Mailer/Bridge/Sendinblue/Transport/SendinblueApiTransport.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
/**
3131
* @author Yann LUCAS
32+
*
33+
* @deprecated since Symfony 6.3, use BrevoApiTransport instead
3234
*/
3335
final class SendinblueApiTransport extends AbstractApiTransport
3436
{

src/Symfony/Component/Mailer/Bridge/Sendinblue/Transport/SendinblueSmtpTransport.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* @author Yann LUCAS
20+
*
21+
* @deprecated since Symfony 6.3, use BrevoApiTransport instead
2022
*/
2123
final class SendinblueSmtpTransport extends EsmtpTransport
2224
{

src/Symfony/Component/Mailer/Bridge/Sendinblue/Transport/SendinblueTransportFactory.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,23 @@
1111

1212
namespace Symfony\Component\Mailer\Bridge\Sendinblue\Transport;
1313

14+
use Symfony\Component\Mailer\Bridge\Brevo\Transport\BrevoTransportFactory;
1415
use Symfony\Component\Mailer\Exception\UnsupportedSchemeException;
1516
use Symfony\Component\Mailer\Transport\AbstractTransportFactory;
1617
use Symfony\Component\Mailer\Transport\Dsn;
1718
use Symfony\Component\Mailer\Transport\TransportInterface;
1819

1920
/**
2021
* @author Yann LUCAS
22+
*
23+
* @deprecated since Symfony 6.3, use BrevoTransportFactory instead
2124
*/
2225
final class SendinblueTransportFactory extends AbstractTransportFactory
2326
{
2427
public function create(Dsn $dsn): TransportInterface
2528
{
29+
trigger_deprecation('symfony/sendinblue-mailer', '6.3', 'The "%s" class is deprecated, use "%s" instead.', SendinblueTransportFactory::class, BrevoTransportFactory::class);
30+
2631
if (!\in_array($dsn->getScheme(), $this->getSupportedSchemes(), true)) {
2732
throw new UnsupportedSchemeException($dsn, 'sendinblue', $this->getSupportedSchemes());
2833
}

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

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

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