Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Notifier] Deprecate sms77 Notifier bridge #58200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions UPGRADE-7.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ SecurityBundle

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

Notifier
--------

* Deprecate the `Sms77` transport, use `SevenIo` instead

Serializer
----------

Expand Down
5 changes: 5 additions & 0 deletions src/Symfony/Component/Notifier/Bridge/Sms77/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

7.3
---

* Deprecate the bridge

6.2
---

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Notifier/Bridge/Sms77/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sms77 Notifier
=================

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

DSN example
-----------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

/**
* @author André Matthies <[email protected]>
*
* @deprecated since Symfony 7.3, use the Seven.io bridge instead.
*/
final class Sms77Transport extends AbstractTransport
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@

/**
* @author André Matthies <[email protected]>
*
* @deprecated since Symfony 7.3, use the Seven.io bridge instead.
*/
final class Sms77TransportFactory extends AbstractTransportFactory
{
public function create(Dsn $dsn): Sms77Transport
{
trigger_deprecation('symfony/sms77-notifier', '7.3', 'The "symfony/sms77-notifier" package is deprecated, use "symfony/sevenio-notifier" instead.');

$scheme = $dsn->getScheme();

if ('sms77' !== $scheme) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
use Symfony\Component\Notifier\Test\AbstractTransportFactoryTestCase;
use Symfony\Component\Notifier\Test\IncompleteDsnTestTrait;

/**
* @group legacy
*/
final class Sms77TransportFactoryTest extends AbstractTransportFactoryTestCase
{
use IncompleteDsnTestTrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
use Symfony\Contracts\HttpClient\HttpClientInterface;

/**
* @group legacy
*/
final class Sms77TransportTest extends TransportTestCase
{
public static function createTransport(?HttpClientInterface $client = null, ?string $from = null): Sms77Transport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
],
"require": {
"php": ">=8.2",
"symfony/deprecation-contracts": "^2.5|^3",
"symfony/http-client": "^6.4|^7.0",
"symfony/notifier": "^7.2"
},
Expand Down
Loading