From ccf1571a97ac6835d3682bd21cf8ea35a0aa43dc Mon Sep 17 00:00:00 2001 From: Yi-Jyun Pan Date: Thu, 10 Oct 2024 18:09:26 +0800 Subject: [PATCH] [Notifier] Add LINE Bot bridge --- Exception/UnsupportedSchemeException.php | 4 ++++ Tests/Exception/UnsupportedSchemeExceptionTest.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Exception/UnsupportedSchemeException.php b/Exception/UnsupportedSchemeException.php index 99915ab..37ac9fd 100644 --- a/Exception/UnsupportedSchemeException.php +++ b/Exception/UnsupportedSchemeException.php @@ -124,6 +124,10 @@ class UnsupportedSchemeException extends LogicException 'class' => Bridge\LightSms\LightSmsTransportFactory::class, 'package' => 'symfony/light-sms-notifier', ], + 'linebot' => [ + 'class' => Bridge\LineBot\LineBotTransportFactory::class, + 'package' => 'symfony/line-bot-notifier', + ], 'linenotify' => [ 'class' => Bridge\LineNotify\LineNotifyTransportFactory::class, 'package' => 'symfony/line-notify-notifier', diff --git a/Tests/Exception/UnsupportedSchemeExceptionTest.php b/Tests/Exception/UnsupportedSchemeExceptionTest.php index 314bc34..d3d3676 100644 --- a/Tests/Exception/UnsupportedSchemeExceptionTest.php +++ b/Tests/Exception/UnsupportedSchemeExceptionTest.php @@ -52,6 +52,7 @@ public static function setUpBeforeClass(): void Bridge\Isendpro\IsendproTransportFactory::class => false, Bridge\KazInfoTeh\KazInfoTehTransportFactory::class => false, Bridge\LightSms\LightSmsTransportFactory::class => false, + Bridge\LineBot\LineBotTransportFactory::class => false, Bridge\LineNotify\LineNotifyTransportFactory::class => false, Bridge\LinkedIn\LinkedInTransportFactory::class => false, Bridge\Lox24\Lox24TransportFactory::class => false, @@ -147,6 +148,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \ yield ['isendpro', 'symfony/isendpro-notifier']; yield ['kaz-info-teh', 'symfony/kaz-info-teh-notifier']; yield ['lightsms', 'symfony/light-sms-notifier']; + yield ['linebot', 'symfony/line-bot-notifier']; yield ['linenotify', 'symfony/line-notify-notifier']; yield ['linkedin', 'symfony/linked-in-notifier']; yield ['lox24', 'symfony/lox24-notifier'];