prefix
stringlengths
512
512
suffix
stringlengths
256
256
middle
stringlengths
14
229
meta
dict
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Clickatell\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component...
ansportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class ClickatellTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInter
\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\MessageInterface; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\Tr
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Clickatell/Tests/ClickatellTransportTest.php", "language": "php", "file_size": 2751, "cut_index": 563, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\LightSms; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException; use Symfony\Component\Notifier\Message\MessageInterface; use Symfony\Component\Notifier\Message\...
t { protected const HOST = 'www.lightsms.com'; private const ERROR_CODES = [ 1 => 'Missing Signature', 2 => 'Login not specified', 3 => 'Text not specified', 4 => 'Phone number not specified', 5 => 'Sender n
Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Vasilij Duško <vasilij@prado.lt> */ final class LightSmsTransport extends AbstractTranspor
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php", "language": "php", "file_size": 5507, "cut_index": 716, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\LightSms; use Symfony\Component\Notifier\Exceptio...
ow new UnsupportedSchemeException($dsn, 'lightsms', $this->getSupportedSchemes()); } $login = $this->getUser($dsn); $token = $this->getPassword($dsn); $from = $dsn->getRequiredOption('from'); $host = 'default' ===
*/ final class LightSmsTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): LightSmsTransport { $scheme = $dsn->getScheme(); if ('lightsms' !== $scheme) { thr
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransportFactory.php", "language": "php", "file_size": 1317, "cut_index": 524, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\LightSms\Tests; use Symfony\Component\Notifier\Bridge\LightSms...
on createProvider(): iterable { yield [ 'lightsms://host.test?from=0611223344', 'lightsms://login:token@host.test?from=0611223344', ]; } public static function supportsProvider(): iterable {
ryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): LightSmsTransportFactory { return new LightSmsTransportFactory(); } public static functi
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportFactoryTest.php", "language": "php", "file_size": 1601, "cut_index": 537, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\LightSms\Tests; use Symfony\Component\HttpClient\...
public static function createTransport(?HttpClientInterface $client = null): LightSmsTransport { return new LightSmsTransport('accountSid', 'authToken', 'from', $client ?? new MockHttpClient()); } public static function toStringProvid
fony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class LightSmsTransportTest extends TransportTestCase {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportTest.php", "language": "php", "file_size": 1413, "cut_index": 524, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\AllMySms; use Symfony\Component\Notifier\Message\MessageOption...
'alerting'] = $alerting; return $this; } /** * @return $this */ public function campaignName(string $campaignName): static { $this->options['campaignName'] = $campaignName; return $this; } /**
$options = [], ) { } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function alerting(int $alerting): static { $this->options[
{ "filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsOptions.php", "language": "php", "file_size": 1981, "cut_index": 537, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\AllMySms; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeExcep...
* @author Quentin Dequippe <quentin@dequippe.tech> */ final class AllMySmsTransport extends AbstractTransport { protected const HOST = 'api.allmysms.com'; public function __construct( private string $login, #[\SensitiveParameter]
fier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /**
{ "filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsTransport.php", "language": "php", "file_size": 3591, "cut_index": 614, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\AllMySms; use Symfony\Component\Notifier\Exceptio...
throw new UnsupportedSchemeException($dsn, 'allmysms', $this->getSupportedSchemes()); } $login = $this->getUser($dsn); $apiKey = $this->getPassword($dsn); $from = $dsn->getOption('from'); $host = 'default' ===
e.tech> */ final class AllMySmsTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): AllMySmsTransport { $scheme = $dsn->getScheme(); if ('allmysms' !== $scheme) {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsTransportFactory.php", "language": "php", "file_size": 1317, "cut_index": 524, "middle_length": 229 }
/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\AllMySms\Tests; use PHPUnit\Framework\TestC...
test_unique_identifier') ->verbose(1); self::assertSame([ 'alerting' => 1, 'date' => 'test_date', 'campaignName' => 'test_campaign_name', 'cliMsgId' => 'test_cli_msg_id', 'sim
ew AllMySmsOptions()) ->alerting(1) ->date('test_date') ->campaignName('test_campaign_name') ->cliMsgId('test_cli_msg_id') ->simulate(1) ->uniqueIdentifier('
{ "filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsOptionsTest.php", "language": "php", "file_size": 1153, "cut_index": 518, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\AllMySms\Tests; use Symfony\Component\Notifier\Bridge\AllMySms...
on createProvider(): iterable { yield [ 'allmysms://host.test', 'allmysms://login:apiKey@host.test', ]; yield [ 'allmysms://host.test?from=TEST', 'allmysms://login:apiKey@host.tes
ryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): AllMySmsTransportFactory { return new AllMySmsTransportFactory(); } public static functi
{ "filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsTransportFactoryTest.php", "language": "php", "file_size": 1542, "cut_index": 537, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\AllMySms\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\H...
ientInterface; final class AllMySmsTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null, ?string $from = null): AllMySmsTransport { return new AllMySmsTransport('login', 'apiK
r\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpCl
{ "filepath": "src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsTransportTest.php", "language": "php", "file_size": 2621, "cut_index": 563, "middle_length": 229 }
ony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Chatwork\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Bridge\Chatwork\ChatworkOptions; class ChatworkOpti...
i'); $this->assertSame(['to' => 'ghi'], $options->toArray()); } public function testSetSelfUnread() { $options = new ChatworkOptions(); $options->selfUnread(true); $this->assertSame(['selfUnread' => true], $opti
']], $options->toArray()); $options->to('gh
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/Tests/ChatworkOptionsTest.php", "language": "php", "file_size": 939, "cut_index": 606, "middle_length": 52 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Chatwork\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\H...
ransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; class ChatworkTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): TransportInterface { return (new
essage\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\T
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/Tests/ChatworkTransportTest.php", "language": "php", "file_size": 2056, "cut_index": 563, "middle_length": 229 }
/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\LineNotify; use Symfony\Component\Notifier\...
ublic function create(Dsn $dsn): LineNotifyTransport { if (self::SCHEME !== $dsn->getScheme()) { throw new UnsupportedSchemeException($dsn, self::SCHEME, $this->getSupportedSchemes()); } $token = $this->getUser($dsn
mi.net> */ final class LineNotifyTransportFactory extends AbstractTransportFactory { private const SCHEME = 'linenotify'; protected function getSupportedSchemes(): array { return [self::SCHEME]; } p
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LineNotify/LineNotifyTransportFactory.php", "language": "php", "file_size": 1236, "cut_index": 518, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\LineNotify\Tests; use Symfony\Component\Notifier\...
return new LineNotifyTransportFactory(); } public static function supportsProvider(): iterable { yield [true, 'linenotify://host']; yield [false, 'somethingElse://host']; } public static function createProvider():
Akira Kurozumi <info@a-zumi.net> */ final class LineNotifyTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): LineNotifyTransportFactory {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LineNotify/Tests/LineNotifyTransportFactoryTest.php", "language": "php", "file_size": 1401, "cut_index": 524, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeSms; use Psr\Log\LoggerInterface; use Symfony\Component\No...
<amakdessi@me.com> */ final class FakeSmsLoggerTransport extends AbstractTransport { protected const HOST = 'default'; public function __construct( private LoggerInterface $logger, ?HttpClientInterface $client = null, ?Eve
ssage\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Antoine Makdessi
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/FakeSmsLoggerTransport.php", "language": "php", "file_size": 1826, "cut_index": 537, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeSms\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Mime\Email; use Symfony\Component\Notifier\Bridge\Fak...
rtTestCase { public static function createTransport(?HttpClientInterface $client = null, ?string $transportName = null): FakeSmsEmailTransport { $transport = (new FakeSmsEmailTransport(new DummyMailer(), 'recipient@email.net', 'sender@email
age; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class FakeSmsEmailTransportTest extends Transpo
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsEmailTransportTest.php", "language": "php", "file_size": 4615, "cut_index": 614, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeSms\Tests; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; use Symfony\Component\Mailer\Mailer; use Symfony\Component\Mailer\Maile...
r\Transport\Dsn; final class FakeSmsTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function testMissingRequiredMailerDependency() { $this->exp
; use Symfony\Component\Notifier\Test\AbstractTransportFactoryTestCase; use Symfony\Component\Notifier\Test\IncompleteDsnTestTrait; use Symfony\Component\Notifier\Test\MissingRequiredOptionTestTrait; use Symfony\Component\Notifie
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsTransportFactoryTest.php", "language": "php", "file_size": 4356, "cut_index": 614, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\SmsSluzba; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeExce...
ymfony\Contracts\HttpClient\HttpClientInterface; /** * @author Dennis Fridrich <fridrich.dennis@gmail.com> */ final class SmsSluzbaTransport extends AbstractTransport { protected const HOST = 'smsgateapi.sms-sluzba.cz'; public function __constr
ifier\Transport\AbstractTransport; use Symfony\Component\Serializer\Encoder\XmlEncoder; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use S
{ "filepath": "src/Symfony/Component/Notifier/Bridge/SmsSluzba/SmsSluzbaTransport.php", "language": "php", "file_size": 3532, "cut_index": 614, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\SmsSluzba\Tests; use Symfony\Component\Notifier\B...
ublic static function createProvider(): iterable { yield [ 'sms-sluzba://host.test', 'sms-sluzba://username:password@host.test', ]; } public static function incompleteDsnProvider(): iterable {
zbaTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): SmsSluzbaTransportFactory { return new SmsSluzbaTransportFactory(); } p
{ "filepath": "src/Symfony/Component/Notifier/Bridge/SmsSluzba/Tests/SmsSluzbaTransportFactoryTest.php", "language": "php", "file_size": 1491, "cut_index": 524, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeChat; use Psr\Log\LoggerInterface; use Symfony\Component\EventDispatcher\EventDispat...
inal class FakeChatLoggerTransport extends AbstractTransport { protected const HOST = 'default'; public function __construct( private LoggerInterface $logger, ?HttpClientInterface $client = null, ?EventDispatcherInterface $
face; use Symfony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Antoine Makdessi <amakdessi@me.com> */ f
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/FakeChatLoggerTransport.php", "language": "php", "file_size": 2053, "cut_index": 563, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeChat; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Co...
nsport; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Oskar Stark <oskarstark@googlemail.com> */ final class FakeChatEmailTransport extends AbstractTransport { protected const HOST = 'default'; public function __construct(
eTypeException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\MessageInterface; use Symfony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Transport\AbstractTra
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/FakeChatEmailTransport.php", "language": "php", "file_size": 2643, "cut_index": 563, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeChat\Tests; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; use Symfony\Compone...
ntInterface; final class FakeChatLoggerTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null, ?LoggerInterface $logger = null): FakeChatLoggerTransport { return new FakeChatLog
\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Fixtures\TestOptions; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClie
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatLoggerTransportTest.php", "language": "php", "file_size": 2411, "cut_index": 563, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeChat\Tests; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; use Symfony\Component\Mailer\Mailer; use Symfony\Component\Mailer\Mail...
fier\Transport\Dsn; final class FakeChatTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function testMissingRequiredMailerDependency() { $this-
ion; use Symfony\Component\Notifier\Test\AbstractTransportFactoryTestCase; use Symfony\Component\Notifier\Test\IncompleteDsnTestTrait; use Symfony\Component\Notifier\Test\MissingRequiredOptionTestTrait; use Symfony\Component\Noti
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatTransportFactoryTest.php", "language": "php", "file_size": 4391, "cut_index": 614, "middle_length": 229 }
/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FortySixElks; use Symfony\Component\Notifie...
ortedSchemeException($dsn, 'forty-six-elks', $this->getSupportedSchemes()); } $host = 'default' === $dsn->getHost() ? null : $dsn->getHost(); $from = $dsn->getRequiredOption('from'); return (new FortySixElksTransport($this
*/ final class FortySixElksTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): FortySixElksTransport { if ('forty-six-elks' !== $dsn->getScheme()) { throw new Unsupp
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FortySixElks/FortySixElksTransportFactory.php", "language": "php", "file_size": 1239, "cut_index": 518, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FortySixElks\Tests; use PHPUnit\Framework\Attributes\DataProvider; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\H...
ort\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; class FortySixElksTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): FortySixElksTransport { return
tifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transp
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FortySixElks/Tests/FortySixElksTransportTest.php", "language": "php", "file_size": 3132, "cut_index": 614, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Esendex; use Symfony\Component\HttpClient\Exception\JsonException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony...
e Symfony\Contracts\HttpClient\HttpClientInterface; final class EsendexTransport extends AbstractTransport { protected const HOST = 'api.esendex.com'; public function __construct( private string $email, #[\SensitiveParameter] priv
t\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; us
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Esendex/EsendexTransport.php", "language": "php", "file_size": 3747, "cut_index": 614, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Chatwork\Tests; use Symfony\Component\Notifier\Bridge\Chatwork...
quiredOptionTestTrait; public function createFactory(): TransportFactoryInterface { return new ChatworkTransportFactory(); } public static function supportsProvider(): iterable { yield [true, 'chatwork://host?room_id=t
\MissingRequiredOptionTestTrait; use Symfony\Component\Notifier\Transport\TransportFactoryInterface; class ChatworkTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRe
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/Tests/ChatworkTransportFactoryTest.php", "language": "php", "file_size": 1840, "cut_index": 537, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\LineNotify\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component...
pClientInterface; /** * @author Akira Kurozumi <info@a-zumi.net> */ final class LineNotifyTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): LineNotifyTransport { return
fier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\Htt
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LineNotify/Tests/LineNotifyTransportTest.php", "language": "php", "file_size": 2080, "cut_index": 563, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeSms; use Psr\Log\LoggerInterface; use Symfony\Component\Mailer\MailerInterface; use ...
Stark <oskarstark@googlemail.com> * @author Antoine Makdessi <amakdessi@me.com> */ final class FakeSmsTransportFactory extends AbstractTransportFactory { public function __construct( private ?MailerInterface $mailer = null, private ?
Symfony\Component\Notifier\Transport\Dsn; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author James Hemery <james@yieldstudio.fr> * @author Oskar
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/FakeSmsTransportFactory.php", "language": "php", "file_size": 2763, "cut_index": 563, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\SmsSluzba; use Symfony\Component\Notifier\Excepti...
throw new UnsupportedSchemeException($dsn, 'sms-sluzba', $this->getSupportedSchemes()); } $username = $this->getUser($dsn); $password = $this->getPassword($dsn); $host = 'default' === $dsn->getHost() ? null : $
@gmail.com> */ final class SmsSluzbaTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): SmsSluzbaTransport { $scheme = $dsn->getScheme(); if ('sms-sluzba' !== $scheme) {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/SmsSluzba/SmsSluzbaTransportFactory.php", "language": "php", "file_size": 1292, "cut_index": 524, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\SmsSluzba\Tests; use Symfony\Component\Notifier\B...
ClientInterface $client = null, ?string $from = null): SmsSluzbaTransport { return new SmsSluzbaTransport('username', 'password'); } public static function toStringProvider(): iterable { yield ['sms-sluzba://smsgateapi.sms-
; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class SmsSluzbaTransportTest extends TransportTestCase { public static function createTransport(?Http
{ "filepath": "src/Symfony/Component/Notifier/Bridge/SmsSluzba/Tests/SmsSluzbaTransportTest.php", "language": "php", "file_size": 1441, "cut_index": 524, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeChat; use Psr\Log\LoggerInterface; use Symfony\Component\Mailer\MailerInterface; use...
Antoine Makdessi <amakdessi@me.com> */ final class FakeChatTransportFactory extends AbstractTransportFactory { public function __construct( private ?MailerInterface $mailer = null, private ?LoggerInterface $logger = null, ?Even
e Symfony\Component\Notifier\Transport\Dsn; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Oskar Stark <oskarstark@googlemail.com> * @author
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/FakeChatTransportFactory.php", "language": "php", "file_size": 2727, "cut_index": 563, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FortySixElks; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\C...
Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Jon Gotlin <jon@jon.se> */ final class FortySixElksTransport extends AbstractTransport { protected const HOST = 'api.46elks.com'; public function __construct( private strin
Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FortySixElks/FortySixElksTransport.php", "language": "php", "file_size": 2878, "cut_index": 563, "middle_length": 229 }
ony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Esendex; use Symfony\Component\Notifier\Message\MessageOptionsInterface; /** * @author gnito-org <https://github.com/gnito-org> ...
* @return $this */ public function accountReference(string $accountReference): static { $this->options['accountreference'] = $accountReference; return $this; } public function toArray(): array { return $t
tring { return null; } /**
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Esendex/EsendexOptions.php", "language": "php", "file_size": 936, "cut_index": 606, "middle_length": 52 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Chatwork\Tests; use PHPUnit\Framework\TestCase; use Symfony\Co...
his->assertSame(['ghi'], $property->getValue($builder)); } public function testSetSelfUnread() { $builder = new ChatworkMessageBodyBuilder(); $builder->selfUnread(true); $property = new \ReflectionProperty($builder, 'se
geBodyBuilder(); $builder->to(['abc', 'def']); $property = new \ReflectionProperty($builder, 'to'); $this->assertSame(['abc', 'def'], $property->getValue($builder)); $builder->to('ghi'); $t
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/Tests/ChatworkMessageBodyBuilderTest.php", "language": "php", "file_size": 1889, "cut_index": 537, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeSms; use Symfony\Component\Mailer\Exception\TransportExceptionInterface; use Symfony...
face; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author James Hemery <james@yieldstudio.fr> * @author Oskar Stark <oskarstark@googlemail.com> */ final class FakeSmsEmailTransport extends AbstractTransport { protected const HOST =
erface; use Symfony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInter
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/FakeSmsEmailTransport.php", "language": "php", "file_size": 2507, "cut_index": 563, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeChat\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Mime\Email; use Symfony\Component\Notifier\Bridge\FakeChat\FakeChatEmailTransport; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Compone...
ansport(?HttpClientInterface $client = null, ?string $transportName = null): FakeChatEmailTransport { $transport = (new FakeChatEmailTransport(new DummyMailer(), 'recipient@email.net', 'sender@email.net', $client ?? new MockHttpClient()));
mmyMailer; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class FakeChatEmailTransportTest extends TransportTestCase { public static function createTr
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatEmailTransportTest.php", "language": "php", "file_size": 6089, "cut_index": 716, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FortySixElks\Tests; use Symfony\Component\Notifie...
} public static function createProvider(): iterable { yield [ 'forty-six-elks://host.test?from=Symfony', 'forty-six-elks://api_username:api_password@host.test?from=Symfony', ]; } public static f
tySixElksTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): FortySixElksTransportFactory { return new FortySixElksTransportFactory();
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FortySixElks/Tests/FortySixElksTransportFactoryTest.php", "language": "php", "file_size": 1423, "cut_index": 524, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\LineNotify; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Com...
urozumi <info@a-zumi.net> */ final class LineNotifyTransport extends AbstractTransport { protected const HOST = 'notify-api.line.me'; public function __construct( #[\SensitiveParameter] private string $token, ?HttpClientInterface
tifier\Message\SentMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Akira K
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LineNotify/LineNotifyTransport.php", "language": "php", "file_size": 2648, "cut_index": 563, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\FakeSms\Tests; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; use Symfony\Componen...
ransportTestCase { public static function createTransport(?HttpClientInterface $client = null, ?LoggerInterface $logger = null): FakeSmsLoggerTransport { return new FakeSmsLoggerTransport($logger ?? new NullLogger(), $client ?? new MockHttp
sMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class FakeSmsLoggerTransportTest extends T
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsLoggerTransportTest.php", "language": "php", "file_size": 2061, "cut_index": 563, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Chatwork; use Symfony\Component\Notifier\Exceptio...
te(Dsn $dsn): ChatworkTransport { $scheme = $dsn->getScheme(); if (self::SCHEME !== $scheme) { throw new UnsupportedSchemeException($dsn, self::SCHEME, $this->getSupportedSchemes()); } $token = $this->getUse
*/ class ChatworkTransportFactory extends AbstractTransportFactory { private const SCHEME = 'chatwork'; protected function getSupportedSchemes(): array { return [self::SCHEME]; } public function crea
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Chatwork/ChatworkTransportFactory.php", "language": "php", "file_size": 1309, "cut_index": 524, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Redlink\Tests; use Symfony\Component\HttpClient\MockHttpClient...
HttpClient\HttpClientInterface; final class RedlinkTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): RedlinkTransport { return (new RedlinkTransport( 'testApi
Component\Notifier\Message\PushMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Redlink/Tests/RedlinkTransportTest.php", "language": "php", "file_size": 1948, "cut_index": 537, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Pushover; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeExcep...
* @author mocodo <https://github.com/mocodo> */ final class PushoverTransport extends AbstractTransport { protected const HOST = 'api.pushover.net'; public function __construct( #[\SensitiveParameter] private readonly string $userKey,
ifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /**
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Pushover/PushoverTransport.php", "language": "php", "file_size": 3191, "cut_index": 614, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Pushover; use Symfony\Component\Notifier\Exceptio...
$dsn->getScheme()) { throw new UnsupportedSchemeException($dsn, 'pushover', $this->getSupportedSchemes()); } $userKey = $dsn->getUser(); $appToken = $dsn->getPassword(); $host = 'default' === $dsn->getHost() ? n
tInterface; /** * @author mocodo <https://github.com/mocodo> */ final class PushoverTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): TransportInterface { if ('pushover' !==
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Pushover/PushoverTransportFactory.php", "language": "php", "file_size": 1295, "cut_index": 524, "middle_length": 229 }
hp /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Pushover\Tests; use Symfony\Component\No...
over.net', 'pushover://userKey:appToken@api.pushover.net']; } public static function supportsProvider(): iterable { yield [true, 'pushover://userKey@appToken']; yield [false, 'somethingElse://userKey@appToken']; } publ
yTestCase { public function createFactory(): PushoverTransportFactory { return new PushoverTransportFactory(); } public static function createProvider(): iterable { yield ['pushover://api.push
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Pushover/Tests/PushoverTransportFactoryTest.php", "language": "php", "file_size": 1123, "cut_index": 515, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsc\Tests; use Symfony\Component\HttpClient\Mock...
unction createTransport(?HttpClientInterface $client = null): SmscTransport { return new SmscTransport('login', 'password', 'MyApp', $client ?? new MockHttpClient()); } public static function toStringProvider(): iterable {
nt\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class SmscTransportTest extends TransportTestCase { public static f
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsc/Tests/SmscTransportTest.php", "language": "php", "file_size": 1372, "cut_index": 524, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsbox; use Symfony\Component\Clock\Clock; use Symfony\Component\Clock\ClockInterface; use Symfony\Component\Intl\Countries; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Charset; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Day; us...
d Touil <ftouil@smsbox.fr> * @author Alexandre Daubois <alex.daubois@gmail.com> */ final class SmsboxOptions implements MessageOptionsInterface { private ClockInterface $clock; public function __construct( private array $options = [],
ent\Notifier\Bridge\Smsbox\Enum\Udh; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Message\MessageOptionsInterface; /** * @author Alan Zarli <azarli@smsbox.fr> * @author Fari
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/SmsboxOptions.php", "language": "php", "file_size": 6864, "cut_index": 716, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsbox; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Mode; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Strategy; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Exception\Transport...
ExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Alan Zarli <azarli@smsbox.fr> * @author Farid Touil <ftouil@smsbox.fr> */ final class SmsboxTransport extends AbstractTransport { protected const HOST = 'api.sm
; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\Transport
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/SmsboxTransport.php", "language": "php", "file_size": 5792, "cut_index": 716, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsbox; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Mode...
tion create(Dsn $dsn): SmsboxTransport { $scheme = $dsn->getScheme(); if ('smsbox' !== $scheme) { throw new UnsupportedSchemeException($dsn, 'smsbox', $this->getSupportedSchemes()); } $apiKey = $this->getUs
tory; use Symfony\Component\Notifier\Transport\Dsn; /** * @author Alan Zarli <azarli@smsbox.fr> * @author Farid Touil <ftouil@smsbox.fr> */ final class SmsboxTransportFactory extends AbstractTransportFactory { public func
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/SmsboxTransportFactory.php", "language": "php", "file_size": 1690, "cut_index": 537, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsbox\Tests; use PHPUnit\Framework\Attributes\TestWith; use PHPUnit\Framework\TestCase; use Symfony\Component\Intl\Countries; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Charset; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Day; ...
boxOptions()) ->mode(Mode::Expert) ->sender('SENDER') ->strategy(Strategy::Marketing) ->charset(Charset::Utf8) ->udh(Udh::DisabledConcat) ->maxParts(2) ->validity(100)
\Notifier\Bridge\Smsbox\SmsboxOptions; use Symfony\Component\Notifier\Exception\InvalidArgumentException; class SmsboxOptionsTest extends TestCase { public function testSmsboxOptions() { $smsboxOptions = (new Sms
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Tests/SmsboxOptionsTest.php", "language": "php", "file_size": 6970, "cut_index": 716, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsbox\Tests; use Symfony\Component\Notifier\Bridge\Smsbox\SmsboxTransportFactory; use S...
return new SmsboxTransportFactory(); } public static function createProvider(): iterable { yield ['smsbox://host.test?mode=Standard&strategy=4', 'smsbox://APIKEY@host.test?mode=Standard&strategy=4']; yield ['smsbox://host.tes
final class SmsboxTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): SmsboxTransportFactory {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Tests/SmsboxTransportFactoryTest.php", "language": "php", "file_size": 2065, "cut_index": 563, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsbox\Tests; use Symfony\Component\Clock\Test\ClockSensitiveTrait; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Day; use Symfony\C...
otifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; final
r\Bridge\Smsbox\SmsboxOptions; use Symfony\Component\Notifier\Bridge\Smsbox\SmsboxTransport; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\N
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Tests/SmsboxTransportTest.php", "language": "php", "file_size": 8069, "cut_index": 716, "middle_length": 229 }
n Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsbox\Tests\Enum; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfo...
/** * @return iterable<array{Mode, string}> */ public static function provideModeValues(): iterable { yield [Mode::Standard, 'Standard']; yield [Mode::Expert, 'Expert']; yield [Mode::Response, 'Reponse']; //
self::assertSame($value, $mode->value); }
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Tests/Enum/ModeTest.php", "language": "php", "file_size": 967, "cut_index": 582, "middle_length": 52 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsbox\Tests\Webhook; use Symfony\Component\HttpFoundation\Request; use Symfony\Componen...
stParser(); } protected function createRequest(string $payload): Request { parse_str(trim($payload), $parameters); return Request::create('/', 'GET', $parameters, [], [], ['REMOTE_ADDR' => '37.59.198.135']); } protect
omponent\Webhook\Test\AbstractRequestParserTestCase; class SmsboxRequestParserTest extends AbstractRequestParserTestCase { protected function createRequestParser(): RequestParserInterface { return new SmsboxReque
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Tests/Webhook/SmsboxRequestParserTest.php", "language": "php", "file_size": 2180, "cut_index": 563, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsbox\Webhook; use Symfony\Component\HttpFoundation\ChainRequestMatcher; use Symfony\Co...
al class SmsboxRequestParser extends AbstractRequestParser { // https://www.smsbox.net/en/tools-development#doc-sms-accusees public const PROVIDER_IPS = ['37.59.198.135', '178.33.185.51', '54.36.93.79', '54.36.93.80', '62.4.31.47', '62.4.31.48'];
ponent\HttpFoundation\RequestMatcherInterface; use Symfony\Component\RemoteEvent\Event\Sms\SmsEvent; use Symfony\Component\Webhook\Client\AbstractRequestParser; use Symfony\Component\Webhook\Exception\RejectWebhookException; fin
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsbox/Webhook/SmsboxRequestParser.php", "language": "php", "file_size": 2711, "cut_index": 563, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Vonage; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Compone...
y\Contracts\HttpClient\HttpClientInterface; /** * @author Fabien Potencier <fabien@symfony.com> */ final class VonageTransport extends AbstractTransport { // see https://developer.vonage.com/messaging/sms/overview protected const HOST = 'rest.ne
er\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfon
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/VonageTransport.php", "language": "php", "file_size": 3006, "cut_index": 563, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Vonage; use Symfony\Component\Notifier\Exception\...
new UnsupportedSchemeException($dsn, 'vonage', $this->getSupportedSchemes()); } $apiKey = $this->getUser($dsn); $apiSecret = $this->getPassword($dsn); $from = $dsn->getRequiredOption('from'); $host = 'default' === $
m> */ final class VonageTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): VonageTransport { $scheme = $dsn->getScheme(); if ('vonage' !== $scheme) { throw
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/VonageTransportFactory.php", "language": "php", "file_size": 1316, "cut_index": 524, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Vonage\Tests; use Symfony\Component\Notifier\Bridge\Vonage\Von...
nsportFactory { return new VonageTransportFactory(); } public static function createProvider(): iterable { yield [ 'vonage://host.test?from=0611223344', 'vonage://apiKey:apiSecret@host.test?from=0611
ngRequiredOptionTestTrait; final class VonageTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): VonageTra
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/Tests/VonageTransportFactoryTest.php", "language": "php", "file_size": 1874, "cut_index": 537, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Vonage\Tests; use Symfony\Component\HttpClient\Mo...
static function createTransport(?HttpClientInterface $client = null): VonageTransport { return new VonageTransport('apiKey', 'apiSecret', 'sender', $client ?? new MockHttpClient()); } public static function toStringProvider(): iterable
omponent\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class VonageTransportTest extends TransportTestCase { public
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/Tests/VonageTransportTest.php", "language": "php", "file_size": 1397, "cut_index": 524, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Vonage\Tests\Webhook; use Symfony\Component\HttpFoundation\Request; use Symfony\Componen...
{}'); $request->headers->remove('Authorization'); $parser = $this->createRequestParser(); $this->expectException(RejectWebhookException::class); $this->expectExceptionMessage('Missing "Authorization" header'); $par
omponent\Webhook\Test\AbstractRequestParserTestCase; class VonageRequestParserTest extends AbstractRequestParserTestCase { public function testMissingAuthorizationTokenThrows() { $request = $this->createRequest('
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/Tests/Webhook/VonageRequestParserTest.php", "language": "php", "file_size": 2162, "cut_index": 563, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Vonage\Webhook; use Symfony\Component\HttpFoundation\ChainRequestMatcher; use Symfony\Component\HttpFoundation\Request; use Symfony\Compone...
hookException; final class VonageRequestParser extends AbstractRequestParser { protected function getRequestMatcher(): RequestMatcherInterface { return new ChainRequestMatcher([ new MethodRequestMatcher('POST'), new
se Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\RemoteEvent\Event\Sms\SmsEvent; use Symfony\Component\Webhook\Client\AbstractRequestParser; use Symfony\Component\Webhook\Exception\RejectWeb
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Vonage/Webhook/VonageRequestParser.php", "language": "php", "file_size": 3621, "cut_index": 614, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\GoogleChat; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\No...
: self { $options = new self(); $text = $notification->getEmoji().' *'.$notification->getSubject().'* '; if ($notification->getContent()) { $text .= "\r\n".$notification->getContent(); } if ($excep
ements MessageOptionsInterface { private ?string $threadKey = null; public function __construct( private array $options = [], ) { } public static function fromNotification(Notification $notification)
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/GoogleChatOptions.php", "language": "php", "file_size": 2162, "cut_index": 563, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\GoogleChat; use Symfony\Component\HttpClient\Exception\JsonException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException; use Symfony\Component\Notifier\Excep...
nt\HttpClientInterface; /** * @author Jérôme Tamarelle <jerome@tamarelle.net> */ final class GoogleChatTransport extends AbstractTransport { protected const HOST = 'chat.googleapis.com'; /** * @param string $space The space name
e; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClie
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/GoogleChatTransport.php", "language": "php", "file_size": 5376, "cut_index": 716, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\GoogleChat; use Symfony\Component\Notifier\Exception\Unsupport...
hatTransport { $scheme = $dsn->getScheme(); if ('googlechat' !== $scheme) { throw new UnsupportedSchemeException($dsn, 'googlechat', $this->getSupportedSchemes()); } $space = explode('/', $dsn->getPath())[1
final class GoogleChatTransportFactory extends AbstractTransportFactory { /** * @param Dsn $dsn Format: googlechat://<key>:<token>@default/<space>?thread_key=<thread> */ public function create(Dsn $dsn): GoogleC
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/GoogleChatTransportFactory.php", "language": "php", "file_size": 1535, "cut_index": 537, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\GoogleChat\Tests; use PHPUnit\Framework\TestCase; use Symfony\...
-app-avatar.png', 'imageType' => 'CIRCLE', 'imageAltText' => 'Avatar for Sasha', ], 'sections' => [ [ 'header' => 'Contact Info', 'collapsible'
tOptions(); $cardV2 = [ 'header' => [ 'title' => 'Sasha', 'subtitle' => 'Software Engineer', 'imageUrl' => 'https://developers.google.com/chat/images/quickstart
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatOptionsTest.php", "language": "php", "file_size": 1952, "cut_index": 537, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\GoogleChat\Tests; use Symfony\Component\Notifier\Bridge\Google...
tatic function createProvider(): iterable { yield [ 'googlechat://chat.googleapis.com/AAAAA_YYYYY', 'googlechat://abcde-fghij:kl_mnopqrstwxyz%3D@chat.googleapis.com/AAAAA_YYYYY', ]; yield [ '
ortFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): GoogleChatTransportFactory { return new GoogleChatTransportFactory(); } public s
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatTransportFactoryTest.php", "language": "php", "file_size": 1691, "cut_index": 537, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\GoogleChat\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Component\Notifier\Bridge\GoogleChat\GoogleChatOptions; use Symfony\Component\Notifier\Bridge\GoogleChat\G...
TestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; final class GoogleChatTransportTest extends TransportTestCase { public sta
atMessage; use Symfony\Component\Notifier\Message\MessageOptionsInterface; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\Test\Transport
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatTransportTest.php", "language": "php", "file_size": 6451, "cut_index": 716, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Expo; use Symfony\Component\Notifier\Message\MessageOptionsInterface; /** * @author Imad ZAIRIG <https://github.com/zairigimad> * * @se...
blic function toArray(): array { return array_merge($this->options, [ 'to' => $this->to, 'data' => $this->data, ]); } public function getRecipientId(): ?string { return $this->to; }
ev/push-notifications/sending-notifications/#message-request-format */ public function __construct( private string $to, private array $options = [], private array $data = [], ) { } pu
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Expo/ExpoOptions.php", "language": "php", "file_size": 3141, "cut_index": 614, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Expo; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Exception\TransportException; use S...
ace; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Imad ZAIRIG <https://github.com/zairigimad> */ final class ExpoTransport extends AbstractTransport { protected const HOST = 'exp.host/--/api/v2/push/send'; public function
mponent\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterf
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Expo/ExpoTransport.php", "language": "php", "file_size": 3763, "cut_index": 614, "middle_length": 229 }
/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Expo; use Symfony\Component\Notifier\Except...
row new UnsupportedSchemeException($dsn, 'expo', $this->getSupportedSchemes()); } $token = $dsn->getUser(); $host = 'default' === $dsn->getHost() ? null : $dsn->getHost(); $port = $dsn->getPort(); return (new ExpoT
/zairigimad> */ final class ExpoTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): ExpoTransport { $scheme = $dsn->getScheme(); if ('expo' !== $scheme) { th
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Expo/ExpoTransportFactory.php", "language": "php", "file_size": 1186, "cut_index": 518, "middle_length": 229 }
/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Expo\Tests; use Symfony\Component\Notifier\...
yield [ 'expo://exp.host/--/api/v2/push/send', 'expo://default', ]; } public static function supportsProvider(): iterable { yield [true, 'expo://default?accessToken=test']; yield [false,
tFactoryTest extends AbstractTransportFactoryTestCase { public function createFactory(): ExpoTransportFactory { return new ExpoTransportFactory(); } public static function createProvider(): iterable {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Expo/Tests/ExpoTransportFactoryTest.php", "language": "php", "file_size": 1197, "cut_index": 518, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Expo\Tests; use Symfony\Component\HttpClient\Mock...
poTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): ExpoTransport { return new ExpoTransport('token', $client ?? new MockHttpClient()); } public static function t
nt\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Imad ZAIRIG <https://github.com/zairigimad> */ final class Ex
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Expo/Tests/ExpoTransportTest.php", "language": "php", "file_size": 1444, "cut_index": 524, "middle_length": 229 }
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Zulip; use Symfony\Component\Notifier...
ipient, ]; } public function getRecipientId(): ?string { return $this->recipient; } /** * @return $this */ public function topic(string $topic): static { $this->topic = $topic; return
private ?string $topic = null, private ?string $recipient = null, ) { } public function toArray(): array { return [ 'topic' => $this->topic, 'recipient' => $this->rec
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Zulip/ZulipOptions.php", "language": "php", "file_size": 1013, "cut_index": 512, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Zulip; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Co...
Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Mohammad Emran Hasan <phpfour@gmail.com> */ final class ZulipTransport extends AbstractTransport { public function __construct( private string $email, #[\SensitiveParame
otifier\Message\SentMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Zulip/ZulipTransport.php", "language": "php", "file_size": 3495, "cut_index": 614, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Pushover; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Message\MessageOptionsInterface...
falling', 'gamelan', 'incoming', 'intermission', 'magic', 'mechanical', 'pianobar', 'siren', 'spacealarm', 'tugboat', 'alien', 'climb', 'persistent', 'e
ssageOptionsInterface { private const PRIORITIES = [-2, -1, 0, 1, 2]; private const SOUNDS = [ 'pushover', 'bike', 'bugle', 'cashregister', 'classical', 'cosmic', '
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Pushover/PushoverOptions.php", "language": "php", "file_size": 4567, "cut_index": 614, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Sevenio; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeExcept...
* @author Frank Nägler <frank@naegler.hamburg> */ final class SevenIoTransport extends AbstractTransport { protected const HOST = 'gateway.seven.io'; public function __construct( #[\SensitiveParameter] private string $apiKey, priv
ier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /**
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Sevenio/SevenIoTransport.php", "language": "php", "file_size": 3255, "cut_index": 614, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Sevenio\Tests; use Symfony\Component\Notifier\Bri...
function createProvider(): iterable { yield [ 'sevenio://host.test', 'sevenio://apiKey@host.test', ]; yield [ 'sevenio://host.test?from=TEST', 'sevenio://apiKey@host.test?from=TE
portFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): SevenIoTransportFactory { return new SevenIoTransportFactory(); } public static
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Sevenio/Tests/SevenIoTransportFactoryTest.php", "language": "php", "file_size": 1506, "cut_index": 524, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\TurboSms; use Symfony\Component\Notifier\Exception\LengthException; use Symfony\Component\Notifier\Exception\TransportException; use Symfon...
em Henvald <genvaldartem@gmail.com> * * @see https://turbosms.ua/api.html */ final class TurboSmsTransport extends AbstractTransport { protected const HOST = 'api.turbosms.ua'; private const SUBJECT_LATIN_LIMIT = 1521; private const SUBJECT
nt\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Art
{ "filepath": "src/Symfony/Component/Notifier/Bridge/TurboSms/TurboSmsTransport.php", "language": "php", "file_size": 4531, "cut_index": 614, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Redlink; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeExcept...
* @author Mateusz Żyła <https://github.com/plotkabytes> */ final class RedlinkTransport extends AbstractTransport { protected const HOST = 'api.redlink.pl'; public function __construct( #[\SensitiveParameter] private readonly string $apiT
ier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /**
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Redlink/RedlinkTransport.php", "language": "php", "file_size": 3539, "cut_index": 614, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Redlink\Tests; use Symfony\Component\Notifier\Bridge\Redlink\R...
nkTransportFactory { return new RedlinkTransportFactory(); } public static function createProvider(): iterable { yield [ 'redlink://api.redlink.pl?from=TEST&version=v2.1', 'redlink://aaaaa:bbbbbb@api
ssingRequiredOptionTestTrait; final class RedlinkTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): Redli
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Redlink/Tests/RedlinkTransportFactoryTest.php", "language": "php", "file_size": 2019, "cut_index": 537, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\TurboSms; use Symfony\Component\Notifier\Exceptio...
throw new UnsupportedSchemeException($dsn, 'turbosms', $this->getSupportedSchemes()); } $authToken = $this->getUser($dsn); $from = $dsn->getRequiredOption('from'); $host = 'default' === $dsn->getHost() ? null : $dsn->get
.com> */ final class TurboSmsTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): TurboSmsTransport { $scheme = $dsn->getScheme(); if ('turbosms' !== $scheme) {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/TurboSms/TurboSmsTransportFactory.php", "language": "php", "file_size": 1278, "cut_index": 524, "middle_length": 229 }
/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\RingCentral; use Symfony\Component\Notifier...
= null, ?string $name = null, ?string $uri = null, ?string $callingCode = null): static { $this->options['country'] = [ 'id' => $id, 'isoCode' => $isoCode, 'name' => $name, 'uri' => $uri,
ct( private array $options = [], ) { } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function country(string $id, ?string $isoCode
{ "filepath": "src/Symfony/Component/Notifier/Bridge/RingCentral/RingCentralOptions.php", "language": "php", "file_size": 1162, "cut_index": 518, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\RingCentral; use Symfony\Component\Notifier\Excep...
n->getScheme(); if (self::TRANSPORT_SCHEME !== $scheme) { throw new UnsupportedSchemeException($dsn, self::TRANSPORT_SCHEME, $this->getSupportedSchemes()); } $apiKey = $this->getUser($dsn); $from = $dsn->getRequi
gnito-org> */ final class RingCentralTransportFactory extends AbstractTransportFactory { private const TRANSPORT_SCHEME = 'ringcentral'; public function create(Dsn $dsn): RingCentralTransport { $scheme = $ds
{ "filepath": "src/Symfony/Component/Notifier/Bridge/RingCentral/RingCentralTransportFactory.php", "language": "php", "file_size": 1373, "cut_index": 524, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\RingCentral\Tests; use Symfony\Component\Notifier\Bridge\RingC...
Factory(): RingCentralTransportFactory { return new RingCentralTransportFactory(); } public static function createProvider(): iterable { yield ['ringcentral://host.test?from=0611223344', 'ringcentral://apiToken@host.test?fr
fier\Test\MissingRequiredOptionTestTrait; final class RingCentralTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function create
{ "filepath": "src/Symfony/Component/Notifier/Bridge/RingCentral/Tests/RingCentralTransportFactoryTest.php", "language": "php", "file_size": 1794, "cut_index": 537, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsapi; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeExcepti...
nterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Marcin Szepczynski <szepczynski@gmail.com> */ final class SmsapiTransport extends AbstractTransport { protected const HOST = 'api.smsapi.pl'; private bool $fast = fal
er\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionI
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransport.php", "language": "php", "file_size": 3879, "cut_index": 614, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsapi\Tests; use Symfony\Component\Notifier\Bridge\Smsapi\SmsapiTransportFactory; use S...
yield [ 'smsapi://host.test', 'smsapi://token@host.test', ]; yield [ 'smsapi://host.test?from=testFrom', 'smsapi://token@host.test?from=testFrom', ]; yield [
ctoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): SmsapiTransportFactory { return new SmsapiTransportFactory(); } public static function createProvider(): iterable {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/SmsapiTransportFactoryTest.php", "language": "php", "file_size": 2884, "cut_index": 563, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Mailjet; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Compon...
ny\Contracts\HttpClient\HttpClientInterface; /** * @author Jérôme Nadaud <jerome@nadaud.io> */ final class MailjetTransport extends AbstractTransport { protected const HOST = 'api.mailjet.com'; public function __construct( #[\SensitiveP
ier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfo
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Mailjet/MailjetTransport.php", "language": "php", "file_size": 2869, "cut_index": 563, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Mailjet\Tests; use Symfony\Component\HttpClient\M...
lic static function createTransport(?HttpClientInterface $client = null): MailjetTransport { return (new MailjetTransport('authtoken', 'Mailjet', $client ?? new MockHttpClient()))->setHost('host.test'); } public static function toStrin
y\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class MailjetTransportTest extends TransportTestCase { pub
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/MailjetTransportTest.php", "language": "php", "file_size": 1410, "cut_index": 524, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Mailjet; use Symfony\Component\Notifier\Exception...
ew UnsupportedSchemeException($dsn, 'mailjet', $this->getSupportedSchemes()); } $authToken = $this->getPassword($dsn); $from = $this->getUser($dsn); $host = 'default' === $dsn->getHost() ? null : $dsn->getHost(); $p
*/ final class MailjetTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): MailjetTransport { $scheme = $dsn->getScheme(); if ('mailjet' !== $scheme) { throw n
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Mailjet/MailjetTransportFactory.php", "language": "php", "file_size": 1260, "cut_index": 524, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsc\Tests; use Symfony\Component\Notifier\Bridge\Smsc\SmscTra...
eProvider(): iterable { yield [ 'smsc://host.test?from=MyApp', 'smsc://login:password@host.test?from=MyApp', ]; } public static function supportsProvider(): iterable { yield [true, 'smsc://lo
xtends AbstractTransportFactoryTestCase { use MissingRequiredOptionTestTrait; public function createFactory(): SmscTransportFactory { return new SmscTransportFactory(); } public static function creat
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsc/Tests/SmscTransportFactoryTest.php", "language": "php", "file_size": 1528, "cut_index": 537, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Pushover\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Compon...
Interface; final class PushoverTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): PushoverTransport { return new PushoverTransport('userKey', 'appToken', $client ?? new Mo
ion\Notification; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\Response
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Pushover/Tests/PushoverTransportTest.php", "language": "php", "file_size": 3498, "cut_index": 614, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Sevenio; use Symfony\Component\Notifier\Exception...
ow new UnsupportedSchemeException($dsn, 'sevenio', $this->getSupportedSchemes()); } $apiKey = $this->getUser($dsn); $from = $dsn->getOption('from'); $host = 'default' === $dsn->getHost() ? null : $dsn->getHost(); $p
g> */ final class SevenIoTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): SevenIoTransport { $scheme = $dsn->getScheme(); if ('sevenio' !== $scheme) { thr
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Sevenio/SevenIoTransportFactory.php", "language": "php", "file_size": 1256, "cut_index": 524, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Sevenio\Tests; use Symfony\Component\HttpClient\M...
lic static function createTransport(?HttpClientInterface $client = null, ?string $from = null): SevenIoTransport { return new SevenIoTransport('apiKey', $from, $client ?? new MockHttpClient()); } public static function toStringProvider
y\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class SevenIoTransportTest extends TransportTestCase { pub
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Sevenio/Tests/SevenIoTransportTest.php", "language": "php", "file_size": 1493, "cut_index": 524, "middle_length": 229 }
This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Redlink; use Symfony\Component\Notifier\Exception...
nk' !== $dsn->getScheme()) { throw new UnsupportedSchemeException($dsn, 'redlink', $this->getSupportedSchemes()); } $apiKey = $dsn->getUser(); $appToken = $dsn->getPassword(); $host = 'default' === $dsn->getHost
Interface; /** * @author Mateusz Żyła <https://github.com/plotkabytes> */ final class RedlinkTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): TransportInterface { if ('redli
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Redlink/RedlinkTransportFactory.php", "language": "php", "file_size": 1422, "cut_index": 524, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\TurboSms\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\JsonMockResponse; use Symfony\Component\Notifier\Bridge\TurboSms\TurboSmsTransport; use Symfony\Component\Notifier\Exception\LengthExc...
lient\ResponseInterface; final class TurboSmsTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): TurboSmsTransport { return new TurboSmsTransport('authToken', 'sender', $cl
nt\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpC
{ "filepath": "src/Symfony/Component/Notifier/Bridge/TurboSms/Tests/TurboSmsTransportTest.php", "language": "php", "file_size": 6235, "cut_index": 716, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\RingCentral\Tests; use PHPUnit\Framework\Attributes\DataProvider; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Ht...
Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; final class RingCentralTransportTest extends TransportTestCase { public static function createTransport(?H
ent\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\
{ "filepath": "src/Symfony/Component/Notifier/Bridge/RingCentral/Tests/RingCentralTransportTest.php", "language": "php", "file_size": 3687, "cut_index": 614, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Smsapi\Tests; use PHPUnit\Framework\Attributes\DataProvider; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpCli...
; final class SmsapiTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null, string $from = '', bool $fast = false, bool $test = false): SmsapiTransport { return (new SmsapiTrans
tMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/SmsapiTransportTest.php", "language": "php", "file_size": 4073, "cut_index": 614, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Mailjet\Tests; use Symfony\Component\Notifier\Bridge\Mailjet\M...
ateProvider(): iterable { yield [ 'mailjet://Mailjet@host.test', 'mailjet://Mailjet:authtoken@host.test', ]; } public static function supportsProvider(): iterable { yield [true, 'mailjet://Ma
st extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): MailjetTransportFactory { return new MailjetTransportFactory(); } public static function cre
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/MailjetTransportFactoryTest.php", "language": "php", "file_size": 1576, "cut_index": 537, "middle_length": 229 }
part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Zulip\Tests; use Symfony\Component\Notifier\Bridge\Zulip\Zulip...
tFactory { return new ZulipTransportFactory(); } public static function createProvider(): iterable { yield [ 'zulip://host.test?channel=testChannel', 'zulip://email:token@host.test?channel=testChanne
equiredOptionTestTrait; final class ZulipTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): ZulipTranspor
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Zulip/Tests/ZulipTransportFactoryTest.php", "language": "php", "file_size": 1805, "cut_index": 537, "middle_length": 229 }