8000 [Notifier] Deprecate sms77 Notifier bridge · symfony/symfony@006ea39 · GitHub
[go: up one dir, main page]

Skip to content

Commit 006ea39

Browse files
MrYamousfabpot
authored andcommitted
[Notifier] Deprecate sms77 Notifier bridge
1 parent 35202a2 commit 006ea39

File tree

8 files changed

+24
-1
lines changed

8 files changed

+24
-1
lines changed

UPGRADE-7.3.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ SecurityBundle
118118

119119
* Deprecate the `security.hide_user_not_found` config option in favor of `security.expose_security_errors`
120120

121+
Notifier
122+
--------
123+
124+
* Deprecate the `Sms77` transport, use `SevenIo` instead
125+
121126
Serializer
122127
----------
123128

src/Symfony/Component/Notifier/Bridge/Sms77/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+
7.3
5+
---
6+
7+
* Deprecate the bridge
8+
49
6.2
510
---
611

src/Symfony/Component/Notifier/Bridge/Sms77/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sms77 Notifier
22
=================
33

4-
Provides [sms77](https://www.sms77.io/) integration for Symfony Notifier.
4+
The sms77 bridge is deprecated, use the Seven.io bridge instead.
55

66
DSN example
77
-----------

src/Symfony/Component/Notifier/Bridge/Sms77/Sms77Transport.php

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

2424
/**
2525
* @author André Matthies <matthiez@gmail.com>
26+
*
27+
* @deprecated since Symfony 7.3, use the Seven.io bridge instead.
2628
*/
2729
final class Sms77Transport extends AbstractTransport
2830
{

src/Symfony/Component/Notifier/Bridge/Sms77/Sms77TransportFactory.php

Lines changed: 4 additions & 0 deletions
8000
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@
1717

1818
/**
1919
* @author André Matthies <matthiez@gmail.com>
20+
*
21+
* @deprecated since Symfony 7.3, use the Seven.io bridge instead.
2022
*/
2123
final class Sms77TransportFactory extends AbstractTransportFactory
2224
{
2325
public function create(Dsn $dsn): Sms77Transport
2426
{
27+
trigger_deprecation('symfony/sms77-notifier', '7.3', 'The "symfony/sms77-notifier" package is deprecated, use "symfony/sevenio-notifier" instead.');
28+
2529
$scheme = $dsn->getScheme();
2630

2731
if ('sms77' !== $scheme) {

src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportFactoryTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
use Symfony\Component\Notifier\Test\AbstractTransportFactoryTestCase;
1616
use Symfony\Component\Notifier\Test\IncompleteDsnTestTrait;
1717

18+
/**
19+
* @group legacy
20+
*/
1821
final class Sms77TransportFactoryTest extends AbstractTransportFactoryTestCase
1922
{
2023
use IncompleteDsnTestTrait;

src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
2020
use Symfony\Contracts\HttpClient\HttpClientInterface;
2121

22+
/**
23+
* @group legacy
24+
*/
2225
final class Sms77TransportTest extends TransportTestCase
2326
{
2427
public static function createTransport(?HttpClientInterface $client = null, ?string $from = null): Sms77Transport

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=8.2",
20+
"symfony/deprecation-contracts": "^2.5|^3",
2021
"symfony/http-client": "^6.4|^7.0",
2122
"symfony/notifier": "^7.2"
2223
},

0 commit comments

Comments
 (0)
0