8000 deprecate sms77 notifier bridge · symfony/symfony@e0ff030 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0ff030

Browse files
committed
deprecate sms77 notifier bridge
1 parent 590f629 commit e0ff030

File tree

9 files changed

+23
-13
lines changed

9 files changed

+23
-13
lines changed

UPGRADE-7.2.md

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ Notifier
6868
The `testIncompleteDsnException()` and `testMissingRequiredOptionException()` tests are no longer provided by default. If you make use of them (i.e. by implementing the
6969
`incompleteDsnProvider()` or `missingRequiredOptionProvider()` data providers), you now need to use the `IncompleteDsnTestTrait` or `MissingRequiredOptionTestTrait` respectively.
7070

71+
* Deprecate the `Sms77Transport` class, use `SevenIoTransport`instead
72+
7173
Security
7274
--------
7375

src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier_transports.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
'sms-biuras' => Bridge\SmsBiuras\SmsBiurasTransportFactory::class,
101101
'sms-factor' => Bridge\SmsFactor\SmsFactorTransportFactory::class,
102102
'sms-sluzba' => Bridge\SmsSluzba\SmsSluzbaTransportFactory::class,
103-
'sms77' => Bridge\Sms77\Sms77TransportFactory::class,
104103
'smsapi' => Bridge\Smsapi\SmsapiTransportFactory::class,
105104
'smsbox' => Bridge\Smsbox\SmsboxTransportFactory::class,
106105
'smsc' => Bridge\Smsc\SmscTransportFactory::class,
@@ -133,5 +132,11 @@
133132
->parent('notifier.transport_factory.abstract')
134133
->tag('chatter.transport_factory')
135134
->tag('texter.transport_factory')
135+
136+
->set('notifier.transport_factory.sms77', Bridge\Sms77\Sms77TransportFactory::class)
137+
->parent('notifier.transport_factory.abstract')
138+
->tag('texter.transport_factory')
139+
->deprecate('symfony/framework-bundle', '7.2', 'The "%service_id% service is deprecated, use
140+
"notifier.transport_factory.sevenio" instead.')
136141
;
137142
};

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

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
sms77 Notifier
22
=================
33

4-
Provides [sms77](https://www.sms77.io/) integration for Symfony Notifier.
5-
6-
DSN example
7-
-----------
8-
9-
```
10-
SMS77_DSN=sms77://API_KEY@default?from=FROM
11-
```
12-
13-
where:
14-
- `API_KEY` is your sms77 API key
15-
- `FROM` is your sender (optional, default: SMS)
4+
The sms77 bridge is deprecated, use the Seven.io bridge instead.
165

176
Resources
187
---------

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

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

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

14+
trigger_deprecation('symfony/sms77-notifier', '7.2', 'The "symfony/sms77-notifier" package is deprecated, use "symfony/sevenio-notifier" instead.');
15+
1416
use Symfony\Component\Notifier\Exception\TransportException;
1517
use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException;
1618
use Symfony\Component\Notifier\Message\MessageInterface;
@@ -23,6 +25,8 @@
2325

2426
/**
2527
* @author André Matthies <matthiez@gmail.com>
28+
*
29+
* @deprecated since Symfony 7.2, use the Seven.io bridge instead.
2630
*/
2731
final class Sms77Transport extends AbstractTransport
2832
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* @author André Matthies <matthiez@gmail.com>
20+
*
21+
* @deprecated since Symfony 7.2, use the Seven.io bridge instead.
2022
*/
2123
final class Sms77TransportFactory extends AbstractTransportFactory
2224
{

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

+3
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

+3
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

+1
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
},

src/Symfony/Component/Notifier/CHANGELOG.md

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

1212
* Make `TransportFactoryTestCase` and `TransportTestCase` compatible with PHPUnit 10+
1313
* Add `Desktop` channel
14+
* Deprecate the `Sms77Transport` class, use `SevenIoTransport`instead
1415

1516
6.3
1617
---

0 commit comments

Comments
 (0)
0