prefix
stringlengths
512
512
suffix
stringlengths
256
256
middle
stringlengths
14
229
meta
dict
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\Bandwidth\Tests; use PHPUnit\Framework\T...
->priority('test_priority'); self::assertSame([ 'media' => ['foo'], 'tag' => 'test_tag', 'accountId' => 'test_account_id', 'applicationId' => 'test_application_id', 'expiratio
ions = (new BandwidthOptions()) ->media(['foo']) ->tag('test_tag') ->accountId('test_account_id') ->applicationId('test_application_id') ->expiration('test_expiration')
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/Tests/BandwidthOptionsTest.php", "language": "php", "file_size": 1118, "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\Telegram\Reply\Markup\Button; /** * @autho...
bool; return $this; } /** * @return $this */ public function requestLocation(bool $bool): static { $this->options['request_location'] = $bool; return $this; } /** * @return $this */
nction __construct(string $text) { $this->options['text'] = $text; } /** * @return $this */ public function requestContact(bool $bool): static { $this->options['request_contact'] = $
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/Button/KeyboardButton.php", "language": "php", "file_size": 1155, "cut_index": 518, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\Lox24; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException; use Symfony\Component\Notifier\M...
ent\Exception\RedirectionExceptionInterface; use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author
Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface; use Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface; use Symfony\Contracts\HttpCli
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Lox24Transport.php", "language": "php", "file_size": 6516, "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\Lox24; /* * This file is part of the Symfony package. * * (...
inal class Lox24TransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): Lox24Transport { $scheme = $dsn->getScheme(); if (!\in_array($scheme, $this->getSupportedSchemes(), true)) { throw ne
onent\Notifier\Exception\UnsupportedSchemeException; use Symfony\Component\Notifier\Transport\AbstractTransportFactory; use Symfony\Component\Notifier\Transport\Dsn; /** * @author Andrei Lebedev <andrew.lebedev@gmail.com> */ f
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Lox24TransportFactory.php", "language": "php", "file_size": 1588, "cut_index": 537, "middle_length": 229 }
Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Component\Notifier\Bridge\Lox24\Lox24Options; use Symfony\Component\Notifier\Bridge\Lox24\Lox24Transport; use Symfony\Component\Notifier\Bridge\Lox24\Type; use Symfony\Component\Notifier\Bridge\Lox24\VoiceLanguage; use Symfony\Component\Notifier\Exception\...
age\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Andrei Lebedev <andrew.lebedev@gmail.com> */ class Lox24TransportTest extends TransportTestCase { private cons
Message\ChatMessage; use Symfony\Component\Notifier\Message\MessageInterface; use Symfony\Component\Notifier\Message\MessageOptionsInterface; use Symfony\Component\Notifier\Message\PushMessage; use Symfony\Component\Notifier\Mess
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Tests/Lox24TransportTest.php", "language": "php", "file_size": 12278, "cut_index": 921, "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\Lox24\Webhook; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestMatcher\MethodRequestMatcher; use ...
ass Lox24RequestParser extends AbstractRequestParser { protected function getRequestMatcher(): RequestMatcherInterface { return new MethodRequestMatcher('POST'); } /** * @throws RejectWebhookException */ protected fun
ent\AbstractRequestParser; use Symfony\Component\Webhook\Exception\RejectWebhookException; /** * @author Andrei Lebedev <andrew.lebedev@gmail.com> * * @see https://doc.lox24.eu/#section/Introduction/Notifications */ final cl
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Webhook/Lox24RequestParser.php", "language": "php", "file_size": 4245, "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\GatewayApi; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Com...
mfony\Contracts\HttpClient\HttpClientInterface; /** * @author Piergiuseppe Longo <piergiuseppe.longo@gmail.com> */ final class GatewayApiTransport extends AbstractTransport { protected const HOST = 'gatewayapi.com'; public function __construct(
tifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Sy
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/GatewayApiTransport.php", "language": "php", "file_size": 3005, "cut_index": 563, "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\GatewayApi\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Bridge\GatewayApi\GatewayA...
->userRef('test_user_ref') ->label('test_label'); self::assertSame([ 'class' => 'test_class', 'callback_url' => 'test_callback_url', 'userref' => 'test_user_ref', 'label' =>
ass') ->callbackUrl('test_callback_url')
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/GatewayApiOptionsTest.php", "language": "php", "file_size": 955, "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\Bandwidth\Tests; use Symfony\Component\Notifier\Bridge\Bandwidth\BandwidthTransportFacto...
ry { return new BandwidthTransportFactory(); } public static function createProvider(): iterable { yield ['bandwidth://host.test?from=0611223344&account_id=account_id&application_id=application_id&priority=priority', 'bandw
estTrait; final class BandwidthTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): BandwidthTransportFacto
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/Tests/BandwidthTransportFactoryTest.php", "language": "php", "file_size": 2904, "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\Infobip; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeExcept...
* @author Fabien Potencier <fabien@symfony.com> * @author Jérémy Romey <jeremy@free-agent.fr> */ final class InfobipTransport extends AbstractTransport { public function __construct( #[\SensitiveParameter] private string $authToken, p
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/Infobip/InfobipTransport.php", "language": "php", "file_size": 3325, "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\Bandwidth; use Symfony\Component\Notifier\Message\MessageOptio...
ptions['accountId'] = $accountId; return $this; } /** * @return $this */ public function applicationId(string $applicationId): static { $this->options['applicationId'] = $applicationId; return $this;
ay $options = [], ) { } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function accountId(string $accountId): static { $this->o
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/BandwidthOptions.php", "language": "php", "file_size": 1787, "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\Bandwidth; use Symfony\Component\Notifier\Exception\Unsupporte...
if (self::TRANSPORT_SCHEME !== $scheme) { throw new UnsupportedSchemeException($dsn, self::TRANSPORT_SCHEME, $this->getSupportedSchemes()); } $username = $this->getUser($dsn); $password = $this->getPassword($dsn);
final class BandwidthTransportFactory extends AbstractTransportFactory { private const TRANSPORT_SCHEME = 'bandwidth'; public function create(Dsn $dsn): BandwidthTransport { $scheme = $dsn->getScheme();
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/BandwidthTransportFactory.php", "language": "php", "file_size": 1642, "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\Infobip\Tests; use Symfony\Component\Notifier\Bridge\Infobip\I...
ipTransportFactory { return new InfobipTransportFactory(); } public static function createProvider(): iterable { yield [ 'infobip://host.test?from=0611223344', 'infobip://authtoken@host.test?from=061
ssingRequiredOptionTestTrait; final class InfobipTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): Infob
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Infobip/Tests/InfobipTransportFactoryTest.php", "language": "php", "file_size": 1766, "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\Brevo; use Symfony\Component\Notifier\Messa...
{ $this->options['webUrl'] = $url; return $this; } /** * @return $this */ public function type(string $type = 'transactional'): static { $this->options['type'] = $type; return $this; }
ion toArray(): array { return $this->options; } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function webUrl(string $url): static
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Brevo/BrevoOptions.php", "language": "php", "file_size": 1160, "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\Brevo; use Symfony\Component\Notifier\Excep...
xception($dsn, 'brevo', $this->getSupportedSchemes()); } $apiKey = $this->getUser($dsn); $sender = $dsn->getRequiredOption('sender'); $host = 'default' === $dsn->getHost() ? null : $dsn->getHost(); $port = $dsn->get
BrevoTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): BrevoTransport { $scheme = $dsn->getScheme(); if ('brevo' !== $scheme) { throw new UnsupportedSchemeE
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Brevo/BrevoTransportFactory.php", "language": "php", "file_size": 1232, "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\Telegram\Reply\Markup\Button; /** * @author Mihail Krasilniko...
is; } /** * @return $this */ public function loginUrl(string $url): static { $this->options['login_url']['url'] = $url; return $this; } /** * @return $this */ public function loginUrlForwar
__construct(string $text = '') { $this->options['text'] = $text; } /** * @return $this */ public function url(string $url): static { $this->options['url'] = $url; return $th
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/Button/InlineKeyboardButton.php", "language": "php", "file_size": 1878, "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\Lox24\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Bridge\Lox24...
->toArray()['delivery_at']); } public function testDeliveryWithNull() { $options = (new Lox24Options())->deliveryAt(null); $this->assertSame(0, $options->toArray()['delivery_at']); } public function testVoiceLangAuto()
Lox24OptionsTest extends TestCase { public function testDeliveryAtWithNotNull() { $options = (new Lox24Options())->deliveryAt((new \DateTimeImmutable())->setTimestamp(123)); $this->assertSame(123, $options
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Tests/Lox24OptionsTest.php", "language": "php", "file_size": 2388, "cut_index": 563, "middle_length": 229 }
ier\Bridge\Lox24\Webhook\Lox24RequestParser; use Symfony\Component\RemoteEvent\Event\Sms\SmsEvent; use Symfony\Component\RemoteEvent\RemoteEvent; use Symfony\Component\Webhook\Exception\RejectWebhookException; /** * @author Andrei Lebedev <andrew.lebedev@gmail.com> */ class Lox24RequestParserTest extends TestCase { ...
ms.delivery']); $this->parser->parse($request, ''); } public function testSmsDeliveryMissingMsgId() { $this->expectException(RejectWebhookException::class); $this->expectExceptionMessage('The required field "id" is miss
e() { $this->expectException(RejectWebhookException::class); $this->expectExceptionMessage('The required fields "id", "data" are missing from the payload.'); $request = $this->getRequest(['name' => 's
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Tests/Webhook/Lox24RequestParserTest.php", "language": "php", "file_size": 10805, "cut_index": 921, "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\GatewayApi; use Symfony\Component\Notifier\Except...
scheme) { throw new UnsupportedSchemeException($dsn, 'gatewayapi', $this->getSupportedSchemes()); } $authToken = $this->getUser($dsn); $from = $dsn->getRequiredOption('from'); $host = 'default' === $dsn->getHost
e.longo@gmail.com> */ final class GatewayApiTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): GatewayApiTransport { $scheme = $dsn->getScheme(); if ('gatewayapi' !== $
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/GatewayApiTransportFactory.php", "language": "php", "file_size": 1303, "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\GatewayApi\Tests; use Symfony\Component\Notifier\Bridge\Gatewa...
actoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): GatewayApiTransportFactory { return new GatewayApiTransportFactory(); } public static function createProvide
r\Test\MissingRequiredOptionTestTrait; /** * @author Piergiuseppe Longo <piergiuseppe.longo@gmail.com> * @author Oskar Stark <oskarstark@googlemail.com> */ final class GatewayApiTransportFactoryTest extends AbstractTransportF
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/GatewayApiTransportFactoryTest.php", "language": "php", "file_size": 1831, "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\Bandwidth; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Exception\TransportException; ...
terface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author gnito-org <https://github.com/gnito-org> */ final class BandwidthTransport extends AbstractTransport { protected const HOST = 'messaging.bandwidth.com'; public functio
ny\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionIn
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/BandwidthTransport.php", "language": "php", "file_size": 4278, "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\Infobip\Tests; use Symfony\Component\HttpClient\M...
lic static function createTransport(?HttpClientInterface $client = null): InfobipTransport { return (new InfobipTransport('authtoken', '0611223344', $client ?? new MockHttpClient()))->setHost('host.test'); } public static function toSt
y\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class InfobipTransportTest extends TransportTestCase { pub
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Infobip/Tests/InfobipTransportTest.php", "language": "php", "file_size": 1421, "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\Lox24; use Symfony\Component\Notifier\Message\MessageOptionsInterface; /** * @author A...
ull or not set, the message will be sent immediately. */ public function deliveryAt(?\DateTimeInterface $deliveryAt): self { $this->options['delivery_at'] = $deliveryAt ? $deliveryAt->getTimestamp() : 0; return $this; }
public function toArray(): array { return $this->options; } public function getRecipientId(): ?string { return null; } /** * DateTime object of SMS the delivery time. * If N
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Lox24Options.php", "language": "php", "file_size": 2111, "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\GatewayApi; use Symfony\Component\Notifier\Messag...
this->options['class'] = $class; return $this; } /** * @return $this */ public function userRef(string $userRef): static { $this->options['userref'] = $userRef; return $this; } /** * @retur
private array $options = [], ) { } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function class(string $class): static { $
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/GatewayApiOptions.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\GatewayApi\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component...
ransport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Piergiuseppe Longo <piergiuseppe.longo@gmail.com> * @author Oskar Stark <oskarstark@googlemail.com> */ final class GatewayApiTransportTest extends TransportTestC
nt\Notifier\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\T
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/GatewayApiTransportTest.php", "language": "php", "file_size": 2245, "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\Infobip; use Symfony\Component\Notifier\Exception...
if ('infobip' !== $scheme) { throw new UnsupportedSchemeException($dsn, 'infobip', $this->getSupportedSchemes()); } $authToken = $this->getUser($dsn); $from = $dsn->getRequiredOption('from'); $host = $dsn->g
om> * @author Jérémy Romey <jeremy@free-agent.fr> */ final class InfobipTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): InfobipTransport { $scheme = $dsn->getScheme();
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Infobip/InfobipTransportFactory.php", "language": "php", "file_size": 1280, "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\Lox24\Tests; use Symfony\Component\Notifier\Bridge\Lox24\Lox24...
use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public static function supportsProvider(): iterable { yield [true, 'lox24://123456:aaaabbbbbbccccccdddddeeee@default?from=0611223344']; yield [false, 'somethin
equiredOptionTestTrait; use Symfony\Component\Notifier\Transport\TransportFactoryInterface; /** * @author Andrei Lebedev <andrew.lebedev@gmail.com> */ class Lox24TransportFactoryTest extends AbstractTransportFactoryTestCase {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Lox24/Tests/Lox24TransportFactoryTest.php", "language": "php", "file_size": 2008, "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\Bandwidth\Tests; use PHPUnit\Framework\Attributes\DataProvider; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Http...
ests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; final class BandwidthTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInt
er\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\T
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Bandwidth/Tests/BandwidthTransportTest.php", "language": "php", "file_size": 3834, "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\Brevo\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Http...
e; use Symfony\Contracts\HttpClient\ResponseInterface; final class BrevoTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): BrevoTransport { return (new BrevoTransport('api
atMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterfac
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Brevo/Tests/BrevoTransportTest.php", "language": "php", "file_size": 2091, "cut_index": 563, "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\Plivo; use Symfony\Component\Notifier\Message\MessageOptionsIn...
return $this; } /** * @return $this */ public function mediaUrls(string $mediaUrls): static { $this->options['media_urls'] = $mediaUrls; return $this; } /** * @return $this */ publ
ons = [], ) { } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function log(bool $log): static { $this->options['log'] = $log;
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/PlivoOptions.php", "language": "php", "file_size": 1918, "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\Plivo; use Symfony\Component\Notifier\Exception\U...
if (self::TRANSPORT_SCHEME !== $scheme) { throw new UnsupportedSchemeException($dsn, self::TRANSPORT_SCHEME, $this->getSupportedSchemes()); } $authId = $this->getUser($dsn); $authToken = $this->getPassword($dsn);
org> */ final class PlivoTransportFactory extends AbstractTransportFactory { private const TRANSPORT_SCHEME = 'plivo'; public function create(Dsn $dsn): PlivoTransport { $scheme = $dsn->getScheme();
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/PlivoTransportFactory.php", "language": "php", "file_size": 1404, "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\Plivo\Tests; use Symfony\Component\Notifier\Bridge\Plivo\Plivo...
tFactory { return new PlivoTransportFactory(); } public static function createProvider(): iterable { yield ['plivo://host.test?from=0611223344', 'plivo://authId:authToken@host.test?from=0611223344']; } public stati
equiredOptionTestTrait; final class PlivoTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): PlivoTranspor
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/Tests/PlivoTransportFactoryTest.php", "language": "php", "file_size": 1782, "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\ContactEveryone; use Symfony\Component\Notifier\Message\Messag...
this */ public function diffusionName(string $diffusionName): static { $this->options['diffusionname'] = $diffusionName; return $this; } /** * @return $this */ public function category(string $category):
ns implements MessageOptionsInterface { public function __construct( private array $options = [], ) { } public function getRecipientId(): ?string { return null; } /** * @return $
{ "filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/ContactEveryoneOptions.php", "language": "php", "file_size": 1599, "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\ContactEveryone; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Exception\TransportExcep...
tionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Franck Ranaivo-Harisoa <franckranaivo@gmail.com> */ final class ContactEveryoneTransport extends AbstractTransport { protected const HOST = 'contact-everyone.orange-b
Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExcep
{ "filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/ContactEveryoneTransport.php", "language": "php", "file_size": 3834, "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\ContactEveryone\Tests; use Symfony\Component\Notifier\Bridge\C...
Factory(); } public static function createProvider(): iterable { yield [ 'contact-everyone://host.test', 'contact-everyone://token@host.test', ]; yield [ 'contact-everyone://host.tes
ontactEveryoneTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): ContactEveryoneTransportFactory { return new ContactEveryoneTransport
{ "filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/Tests/ContactEveryoneTransportFactoryTest.php", "language": "php", "file_size": 1944, "cut_index": 537, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\OvhCloud; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException; use Symfony\Component\Notifier\Message\MessageInterface; use Symfony\Component\Notifier\Message\...
ransport { protected const HOST = 'eu.api.ovh.com'; private ?string $sender = null; private bool $noStopClause = false; public function __construct( #[\SensitiveParameter] private string $applicationKey, #[\SensitiveParame
Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Thomas Ferney <thomas.ferney@gmail.com> */ final class OvhCloudTransport extends AbstractT
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php", "language": "php", "file_size": 5205, "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\OvhCloud\Tests; use Symfony\Component\Notifier\Bridge\OvhCloud\OvhCloudTransportFactory; use Symfony\Component\Notifier\Test\AbstractTransp...
} public static function createProvider(): iterable { yield [ 'ovhcloud://host.test?service_name=serviceName', 'ovhcloud://key:secret@host.test?consumer_key=consumerKey&service_name=serviceName', ];
tends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): OvhCloudTransportFactory { return new OvhCloudTransportFactory();
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/OvhCloudTransportFactoryTest.php", "language": "php", "file_size": 3324, "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\MicrosoftTeams; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\ActionInterface; use Symfony\Component\Notifier\Bridge\Microsof...
ocs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference */ final class MicrosoftTeamsOptions implements MessageOptionsInterface { private const MAX_ACTIONS = 4; public function __construct( private array $options = [],
Notifier\Message\MessageOptionsInterface; use Symfony\Component\Notifier\Notification\Notification; /** * @author Edouard Lescot <edouard.lescot@gmail.com> * @author Oskar Stark <oskarstark@googlemail.com> * * @see https://d
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/MicrosoftTeamsOptions.php", "language": "php", "file_size": 4663, "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\MicrosoftTeams; use Symfony\Component\Notifier\Ex...
ion create(Dsn $dsn): MicrosoftTeamsTransport { $scheme = $dsn->getScheme(); if ('microsoftteams' !== $scheme) { throw new UnsupportedSchemeException($dsn, 'microsoftteams', $this->getSupportedSchemes()); }
tifier\Transport\Dsn; /** * @author Edouard Lescot <edouard.lescot@gmail.com> * @author Oskar Stark <oskarstark@googlemail.com> */ final class MicrosoftTeamsTransportFactory extends AbstractTransportFactory { public funct
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/MicrosoftTeamsTransportFactory.php", "language": "php", "file_size": 1474, "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\MicrosoftTeams\Action; use Symfony\Component\Notifier\Bridge\M...
*/ public function name(string $name): static { $this->options['name'] = $name; return $this; } /** * @return $this */ public function target(string $url): static { $this->options['target'] =
tlook/actionable-messages/message-card-reference#httppost-action */ final class HttpPostAction implements ActionCardCompatibleActionInterface { private array $options = ['@type' => 'HttpPOST']; /** * @return $this
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/HttpPostAction.php", "language": "php", "file_size": 1679, "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\MicrosoftTeams\Action; use Symfony\Component\Notifier\Exceptio...
'windows', ]; private array $options = []; /** * @return $this */ public function name(string $name): static { $this->options['name'] = $name; return $this; } /** * @return $this */
ionable-messages/message-card-reference#openuri-action */ final class OpenUriAction implements ActionCardCompatibleActionInterface { private const OPERATING_SYSTEMS = [ 'android', 'default', 'iOS',
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/OpenUriAction.php", "language": "php", "file_size": 1548, "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\MicrosoftTeams\Action\Input; /** * @author Edoua...
tatic { $this->options['isRequired'] = $required; return $this; } /** * @return $this */ public function title(string $title): static { $this->options['title'] = $title; return $this; }
* @return $this */ public function id(string $id): static { $this->options['id'] = $id; return $this; } /** * @return $this */ public function isRequired(bool $required): s
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/AbstractInput.php", "language": "php", "file_size": 1255, "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\MicrosoftTeams\Action\Input; use Symfony\Component\Notifier\Ex...
/** * @return $this */ public function choice(string $display, string $value): static { $this->options['choices'][] = ['display' => $display, 'value' => $value]; return $this; } /** * @return $this
ok/actionable-messages/message-card-reference#multichoiceinput */ final class MultiChoiceInput extends AbstractInput { private const STYLES = [ 'expanded', 'normal', ]; private array $options = [];
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/MultiChoiceInput.php", "language": "php", "file_size": 1691, "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\Brevo; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeExceptio...
erface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Pierre Tanguy */ final class BrevoTransport extends AbstractTransport { protected const HOST = 'api.brevo.com'; public function __construct( #[\SensitiveParamet
y\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInt
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Brevo/BrevoTransport.php", "language": "php", "file_size": 3492, "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\Plivo; use Symfony\Component\HttpClient\Exception\JsonException; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Sym...
ny\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author gnito-org <https://github.com/gnito-org> */ final class PlivoTransport extends AbstractTransport { protected const HOS
fony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfo
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/PlivoTransport.php", "language": "php", "file_size": 3770, "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\Plivo\Tests; use PHPUnit\Framework\Attributes\DataProvider; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClie...
Message; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; final class PlivoTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null, s
ArgumentException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\Dummy
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/Tests/PlivoTransportTest.php", "language": "php", "file_size": 4168, "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\ContactEveryone; use Symfony\Component\Notifier\E...
{ throw new UnsupportedSchemeException($dsn, 'contact-everyone', $this->getSupportedSchemes()); } $token = $this->getUser($dsn); $host = 'default' === $dsn->getHost() ? null : $dsn->getHost(); $diffusionName = $
anckranaivo@gmail.com> */ final class ContactEveryoneTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): ContactEveryoneTransport { if ('contact-everyone' !== $dsn->getScheme())
{ "filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/ContactEveryoneTransportFactory.php", "language": "php", "file_size": 1360, "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\OvhCloud; use Symfony\Component\Notifier\Exception\Unsupported...
UnsupportedSchemeException($dsn, 'ovhcloud', $this->getSupportedSchemes()); } $applicationKey = $this->getUser($dsn); $applicationSecret = $this->getPassword($dsn); $consumerKey = $dsn->getRequiredOption('consumer_key');
nal class OvhCloudTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): OvhCloudTransport { $scheme = $dsn->getScheme(); if ('ovhcloud' !== $scheme) { throw new
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransportFactory.php", "language": "php", "file_size": 1627, "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\MicrosoftTeams; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTyp...
; /** * @author Edouard Lescot <edouard.lescot@gmail.com> * @author Oskar Stark <oskarstark@googlemail.com> */ final class MicrosoftTeamsTransport extends AbstractTransport { protected const ENDPOINT = 'outlook.office.com'; public function __c
nt\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/MicrosoftTeamsTransport.php", "language": "php", "file_size": 3476, "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\MicrosoftTeams\Action; /** * @author Edouard Les...
name'] = $name; return $this; } /** * @return $this */ public function addInId(string $addInId): static { $this->options['addInId'] = $addInId; return $this; } /** * @return $this */
and-action */ final class InvokeAddInCommandAction implements ActionInterface { private array $options = []; /** * @return $this */ public function name(string $name): static { $this->options['
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/InvokeAddInCommandAction.php", "language": "php", "file_size": 1496, "cut_index": 524, "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\MicrosoftTeams\Action\Input; /** * @author Edouard Lescot <edouard.lescot@gmail.com> * @author Oskar Stark <oskarstark@googlemail...
unction includeTime(bool $includeTime): static { $this->options['includeTime'] = $includeTime; return $this; } public function toArray(): array { return parent::toArray() + $this->options + ['@type' => 'DateInput']
; /** * @return $this */ public f
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/DateInput.php", "language": "php", "file_size": 924, "cut_index": 606, "middle_length": 52 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\MicrosoftTeams\Tests; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\OpenUriAction; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\MicrosoftTea...
; $this->assertSame( [ 'title' => $subject, 'text' => $content, '@type' => 'MessageCard', '@context' => 'https://schema.org/extensions', ], Microso
Notification; final class MicrosoftTeamsOptionsTest extends TestCase { public function testFromNotification() { $notification = (new Notification($subject = 'Subject')) ->content($content = 'Content')
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsOptionsTest.php", "language": "php", "file_size": 8905, "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\ContactEveryone\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Comp...
; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; final class ContactEveryoneTransportTest extends TransportTestCase { public static
port; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase
{ "filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/Tests/ContactEveryoneTransportTest.php", "language": "php", "file_size": 2764, "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\MicrosoftTeams\Action; use Symfony\Component\Noti...
ion name(string $name): static { $this->options['name'] = $name; return $this; } /** * @return $this */ public function input(InputInterface $inputAction): static { $this->options['inputs'][] = $input
rosoft.com/en-us/outlook/actionable-messages/message-card-reference#actioncard-action */ final class ActionCard implements ActionInterface { private array $options = []; /** * @return $this */ public funct
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/ActionCard.php", "language": "php", "file_size": 1379, "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\MicrosoftTeams\Action\Input; /** * @aut...
'] = $multiline; return $this; } /** * @return $this */ public function maxLength(int $maxLength): static { $this->options['maxLength'] = $maxLength; return $this; } public function toArray(): a
textinput */ final class TextInput extends AbstractInput { private array $options = []; /** * @return $this */ public function isMultiline(bool $multiline): static { $this->options['isMultiline
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/TextInput.php", "language": "php", "file_size": 1097, "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\MicrosoftTeams\Section\Field; /** * @author Osk...
s; } /** * @return $this */ public function value(string $value): static { $this->options['value'] = $value; return $this; } public function toArray(): array { return $this->options; } }
$this->options['name'] = $name; return $thi
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Field/Fact.php", "language": "php", "file_size": 831, "cut_index": 523, "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\Termii\Tests; use Symfony\Component\Notifier\Bridge\Termii\Ter...
nsportFactory { return new TermiiTransportFactory(); } public static function createProvider(): iterable { yield ['termii://host.test?from=0611223344&channel=generic', 'termii://apiKey@host.test?from=0611223344&channel=gene
ngRequiredOptionTestTrait; final class TermiiTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): TermiiTra
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Termii/Tests/TermiiTransportFactoryTest.php", "language": "php", "file_size": 1908, "cut_index": 537, "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\Plivo\Tests; use PHPUnit\Framework\TestC...
->type('test_type'); self::assertSame([ 'log' => true, 'method' => 'test_method', 'url' => 'test_url', 'media_urls' => 'test_media_urls', 'powerpack_uuid' => 'test_powerpack_uuid',
()) ->log(true) ->method('test_method') ->url('test_url') ->mediaUrls('test_media_urls') ->powerpackUuid('test_powerpack_uuid') ->trackable(true)
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Plivo/Tests/PlivoOptionsTest.php", "language": "php", "file_size": 1109, "cut_index": 515, "middle_length": 229 }
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\ContactEveryone\Tests; use PHPUnit\Framework\TestCase;...
ions()) ->category('test_category') ->diffusionName('test_diffusion_name'); self::assertSame([ 'category' => 'test_category', 'diffusionname' => 'test_diffusion_name', ], $contactEveryoneOpti
$contactEveryoneOptions = (new ContactEveryoneOpt
{ "filepath": "src/Symfony/Component/Notifier/Bridge/ContactEveryone/Tests/ContactEveryoneOptionsTest.php", "language": "php", "file_size": 862, "cut_index": 529, "middle_length": 52 }
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\MicrosoftTeams\Action\Element; /** * @author Edouard Lescot <edouard.lescot@gmail.com> * @author Oskar St...
ction name(string $name): static { $this->options['name'] = $name; return $this; } /** * @return $this */ public function value(string $value): static { $this->options['value'] = $value; retu
/** * @return $this */ public fun
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Element/Header.php", "language": "php", "file_size": 989, "cut_index": 582, "middle_length": 52 }
<?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\MicrosoftTeams\Section\Field; /** * ...
n $this; } /** * @return $this */ public function title(string $title): static { $this->options['title'] = $title; return $this; } public function toArray(): array { return $this->options;
nce#image-object */ final class Image { private array $options = []; /** * @return $this */ public function image(string $imageUrl): static { $this->options['image'] = $imageUrl; retur
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Field/Image.php", "language": "php", "file_size": 1003, "cut_index": 512, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\MicrosoftTeams\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\MicrosoftTeamsOptions; use Symfony\Component\Notifier\Bridge\...
Interface; use Symfony\Contracts\HttpClient\ResponseInterface; final class MicrosoftTeamsTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): MicrosoftTeamsTransport { retur
SmsMessage; use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClient
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsTransportTest.php", "language": "php", "file_size": 5761, "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\OvhCloud\Tests; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Group; use Symfony\Component\HttpClient\Moc...
mfony\Contracts\HttpClient\HttpClientInterface; final class OvhCloudTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null, ?string $sender = null, bool $noStopClause = false): OvhCloudTran
on; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Sy
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/OvhCloudTransportTest.php", "language": "php", "file_size": 4771, "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\MicrosoftTeams\Tests; use Symfony\Component...
yield [ 'microsoftteams://host/webhook', 'microsoftteams://host/webhook', ]; } public static function supportsProvider(): iterable { yield [true, 'microsoftteams://host/webhook']; yield [fa
stractTransportFactoryTestCase { public function createFactory(): MicrosoftTeamsTransportFactory { return new MicrosoftTeamsTransportFactory(); } public static function createProvider(): iterable {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsTransportFactoryTest.php", "language": "php", "file_size": 1175, "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\MicrosoftTeams\Section\Field; /** * @author Edou...
rn $this; } /** * @return $this */ public function title(string $title): static { $this->options['activityTitle'] = $title; return $this; } /** * @return $this */ public function subtitle(s
fields */ final class Activity { private array $options = []; /** * @return $this */ public function image(string $imageUrl): static { $this->options['activityImage'] = $imageUrl; retu
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Field/Activity.php", "language": "php", "file_size": 1376, "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\MicrosoftTeams\Tests\Action; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\...
e; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\Input\MultiChoiceInput; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\Input\TextInput; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\OpenUriAction; final class Acti
Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\HttpPostAction; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\Input\DateInput; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\Input\InputInterfac
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/ActionCardTest.php", "language": "php", "file_size": 2596, "cut_index": 563, "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\MicrosoftTeams\Tests\Action; use PHPUnit\Framework\TestCase; u...
mmandAction()) ->addInId($value = '1234'); $this->assertSame($value, $action->toArray()['addInId']); } public function testDesktopCommandId() { $action = (new InvokeAddInCommandAction()) ->desktopComman
action = (new InvokeAddInCommandAction()) ->name($value = 'My name'); $this->assertSame($value, $action->toArray()['name']); } public function testAddInId() { $action = (new InvokeAddInCo
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/InvokeAddInCommandActionTest.php", "language": "php", "file_size": 1643, "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\MicrosoftTeams\Tests\Action; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\...
estTargetWithDefaultValue() { $action = (new OpenUriAction()) ->target($uri = 'URI'); $this->assertSame( [ ['os' => 'default', 'uri' => $uri], ], $action->toArray()['targe
extends TestCase { public function testName() { $action = (new OpenUriAction()) ->name($value = 'My name'); $this->assertSame($value, $action->toArray()['name']); } public function t
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/OpenUriActionTest.php", "language": "php", "file_size": 2102, "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\MicrosoftTeams\Tests\Action\Input; use PHPUnit\Framework\Attributes\DataProvider; use Sy...
unction testTarget() { $input = $this->createInput() ->choice($display = 'DISPLAY', $value = 'VALUE'); $this->assertSame( [ ['display' => $display, 'value' => $value], ],
t\Notifier\Exception\InvalidArgumentException; final class MultiChoiceInputTest extends AbstractInputTestCase { public function createInput(): MultiChoiceInput { return new MultiChoiceInput(); } public f
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/Input/MultiChoiceInputTest.php", "language": "php", "file_size": 2360, "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\MicrosoftTeams\Tests\Action\Input; use Symfony\Co...
(true); $this->assertTrue($input->toArray()['isMultiline']); } public function testIsMultilineWithFalse() { $input = $this->createInput() ->isMultiline(false); $this->assertFalse($input->toArray()['isMulti
AbstractInputTestCase { public function createInput(): TextInput { return new TextInput(); } public function testIsMultilineWithTrue() { $input = $this->createInput() ->isMultiline
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/Input/TextInputTest.php", "language": "php", "file_size": 1417, "cut_index": 524, "middle_length": 229 }
p /* * 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\MicrosoftTeams\Tests\Section\Field; use P...
version'); $this->assertSame($value, $field->toArray()['name']); } public function testTitle() { $field = (new Fact()) ->value($value = '5.3'); $this->assertSame($value, $field->toArray()['value']); }
= (new Fact()) ->name($value = 'Current
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/Field/FactTest.php", "language": "php", "file_size": 827, "cut_index": 516, "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\MicrosoftTeams\Test\Action\Input; use PHPUnit\Framework\TestCa...
ay()['id']); } public function testIsRequiredWithFalse() { $input = $this->createInput(); $input->isRequired(false); $this->assertFalse($input->toArray()['isRequired']); } public function testIsRequiredWithTr
stCase { abstract public function createInput(): AbstractInput; public function testId() { $input = $this->createInput(); $input->id($value = '1234'); $this->assertSame($value, $input->toArr
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Test/Action/Input/AbstractInputTestCase.php", "language": "php", "file_size": 1574, "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\Telnyx; use Symfony\Component\Notifier\Exception\...
nsupportedSchemeException($dsn, 'telnyx', $this->getSupportedSchemes()); } $apiKey = $this->getUser($dsn); $from = $dsn->getRequiredOption('from'); $messagingProfileId = $dsn->getOption('messaging_profile_id'); $hos
/ final class TelnyxTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): TelnyxTransport { $scheme = $dsn->getScheme(); if ('telnyx' !== $scheme) { throw new U
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransportFactory.php", "language": "php", "file_size": 1345, "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\Telnyx\Tests; use Symfony\Component\HttpClient\Mo...
static function createTransport(?HttpClientInterface $client = null): TelnyxTransport { return new TelnyxTransport('api_key', 'from', 'messaging_profile_id', $client ?? new MockHttpClient()); } public static function toStringProvider()
omponent\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class TelnyxTransportTest extends TransportTestCase { public
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportTest.php", "language": "php", "file_size": 1448, "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\ClickSend; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Exception\TransportException; ...
terface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author gnito-org <https://github.com/gnito-org> */ final class ClickSendTransport extends AbstractTransport { protected const HOST = 'rest.clicksend.com'; public function __c
ny\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionIn
{ "filepath": "src/Symfony/Component/Notifier/Bridge/ClickSend/ClickSendTransport.php", "language": "php", "file_size": 4049, "cut_index": 614, "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\ClickSend\Tests; use PHPUnit\Framework\T...
->source('test_source'); self::assertSame([ 'country' => 'test_country', 'custom_string' => 'test_custom_string', 'from_email' => 'test_from_email', 'list_id' => 'test_list_id',
ions = (new ClickSendOptions()) ->country('test_country') ->customString('test_custom_string') ->fromEmail('test_from_email') ->listId('test_list_id') ->schedule(999)
{ "filepath": "src/Symfony/Component/Notifier/Bridge/ClickSend/Tests/ClickSendOptionsTest.php", "language": "php", "file_size": 1109, "cut_index": 515, "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\LineBot; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeExcept...
* @author Yi-Jyun Pan <me@pan93.com> */ final class LineBotTransport extends AbstractTransport { protected const HOST = 'api.line.me'; public function __construct( #[\SensitiveParameter] private readonly string $accessToken, priv
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/LineBot/LineBotTransport.php", "language": "php", "file_size": 3124, "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\LineBot\Tests; use Symfony\Component\Notifier\Bridge\LineBot\LineBotTransportFactory; us...
quiredOptionTestTrait; private const MOCK_TOKEN = 'eyJhbGciOiJIUzI1NiJ9.eyJSb2xlIjoiQWRtaW4iL+CJJc3N1ZXIiOiJJc3N1ZXIiLCJVc2VybmFtZSI6IkphdmFJblVzZSIsImV4cCI6MTcyODU1MjA3OSwiaW+F0IjoxNzI4NTUyMDc5fQ.SPKpGKwsXBay2uXDh7tATW20S2vZpw9qcmYjNp46Ir/AB/12345677
it; use Symfony\Component\Notifier\Transport\Dsn; /** * @author Yi-Jyun Pan <me@pan93.com> */ final class LineBotTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRe
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LineBot/Tests/LineBotTransportFactoryTest.php", "language": "php", "file_size": 2393, "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\LineBot\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Ht...
terface; /** * @author Yi-Jyun Pan <me@pan93.com> */ final class LineBotTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): LineBotTransport { return (new LineBotTranspor
age\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientIn
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LineBot/Tests/LineBotTransportTest.php", "language": "php", "file_size": 2045, "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\ClickSend\Tests; use Symfony\Component\Notifier\Bridge\ClickSend\ClickSendTransportFacto...
iterable { yield ['clicksend://host.test', 'clicksend://apiUsername:ApiKey@host.test']; yield ['clicksend://host.test?from=15556667777', 'clicksend://apiUsername:ApiKey@host.test?from=15556667777']; yield ['clicksend://host.tes
tTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): ClickSendTransportFactory { return new ClickSendTransportFactory(); } public static function createProvider():
{ "filepath": "src/Symfony/Component/Notifier/Bridge/ClickSend/Tests/ClickSendTransportFactoryTest.php", "language": "php", "file_size": 2160, "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\Termii\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Bridge\Termii\TermiiOptions; class TermiiOptionsTest ...
self::assertSame([ 'type' => 'test_type', 'channel' => 'test_channel', 'media' => [ 'url' => 'test_media_url', 'caption' => 'test_media_caption', ], ], $termiiO
->media('test_media_url', 'test_media_caption');
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Termii/Tests/TermiiOptionsTest.php", "language": "php", "file_size": 942, "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\MicrosoftTeams\Tests\Action; use PHPUnit\Framework\TestCase; use Symfony\Component\Notif...
(new HttpPostAction()) ->target($value = 'https://symfony.com'); $this->assertSame($value, $action->toArray()['target']); } public function testHeader() { $header = (new Header()) ->name($name = 'Heade
ion testName() { $action = (new HttpPostAction()) ->name($value = 'My name'); $this->assertSame($value, $action->toArray()['name']); } public function testTarget() { $action =
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/HttpPostActionTest.php", "language": "php", "file_size": 2029, "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\Termii; use Symfony\Component\Notifier\Message\Me...
->options['channel'] = $channel; return $this; } /** * @return $this */ public function media(string $url, string $caption = ''): static { $this->options['media'] = [ 'url' => $url, 'capti
ate array $options = [], ) { } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function channel(string $channel): static { $this
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Termii/TermiiOptions.php", "language": "php", "file_size": 1309, "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\MicrosoftTeams\Tests\Action\Input; use Symf...
deTime(true); $this->assertTrue($input->toArray()['includeTime']); } public function testIncludeTimeWithFalse() { $input = $this->createInput() ->includeTime(false); $this->assertFalse($input->toArray()['i
tends AbstractInputTestCase { public function createInput(): DateInput { return new DateInput(); } public function testIncludeTimeWithTrue() { $input = $this->createInput() ->inclu
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/Input/DateInputTest.php", "language": "php", "file_size": 1224, "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\MicrosoftTeams\Tests\Section\Field; use PHPUnit\F...
y()) ->title($value = 'Symfony is great!'); $this->assertSame($value, $field->toArray()['activityTitle']); } public function testSubtitle() { $field = (new Activity()) ->subtitle($value = 'I am a subtit
d = (new Activity()) ->image($value = 'https://symfony.com/logo.png'); $this->assertSame($value, $field->toArray()['activityImage']); } public function testTitle() { $field = (new Activit
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/Field/ActivityTest.php", "language": "php", "file_size": 1295, "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\Telnyx; use Symfony\Component\Notifier\Exception\IncompleteDsnException; use Symfony\Component\Notifier\Exception\TransportException; use S...
ce; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Vasilij Duško <vasilij@prado.lt> */ final class TelnyxTransport extends AbstractTransport { protected const HOST = 'api.telnyx.com'; public function __construct( #[
mponent\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterfa
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php", "language": "php", "file_size": 3957, "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\ClickSend; use Symfony\Component\Notifier\Message\MessageOptio...
ns['country'] = $country; return $this; } /** * @return $this */ public function customString(string $customString): static { $this->options['custom_string'] = $customString; return $this; } /**
ay $options = [], ) { } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function country(string $country): static { $this->optio
{ "filepath": "src/Symfony/Component/Notifier/Bridge/ClickSend/ClickSendOptions.php", "language": "php", "file_size": 1788, "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\ClickSend; use Symfony\Component\Notifier\Exception\Unsupporte...
if (self::TRANSPORT_SCHEME !== $scheme) { throw new UnsupportedSchemeException($dsn, self::TRANSPORT_SCHEME, $this->getSupportedSchemes()); } $apiUsername = $this->getUser($dsn); $apiKey = $this->getPassword($dsn);
final class ClickSendTransportFactory extends AbstractTransportFactory { private const TRANSPORT_SCHEME = 'clicksend'; public function create(Dsn $dsn): ClickSendTransport { $scheme = $dsn->getScheme();
{ "filepath": "src/Symfony/Component/Notifier/Bridge/ClickSend/ClickSendTransportFactory.php", "language": "php", "file_size": 1591, "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\Termii; use Symfony\Component\Notifier\Exception\...
if (self::TRANSPORT_SCHEME !== $scheme) { throw new UnsupportedSchemeException($dsn, self::TRANSPORT_SCHEME, $this->getSupportedSchemes()); } $apiKey = $this->getUser($dsn); $from = $dsn->getRequiredOption('from');
-org> */ final class TermiiTransportFactory extends AbstractTransportFactory { private const TRANSPORT_SCHEME = 'termii'; public function create(Dsn $dsn): TermiiTransport { $scheme = $dsn->getScheme();
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Termii/TermiiTransportFactory.php", "language": "php", "file_size": 1415, "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\MicrosoftTeams\Tests\Action\Element; use PHPU...
name'); $this->assertSame($value, $action->toArray()['name']); } public function testValue() { $action = (new Header()) ->value($value = 'The value...'); $this->assertSame($value, $action->toArray()['valu
ion = (new Header()) ->name($value = 'My
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Action/Element/HeaderTest.php", "language": "php", "file_size": 842, "cut_index": 520, "middle_length": 52 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\MicrosoftTeams\Tests\Section; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier...
d\Activity; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Section\Field\Fact; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Section\Field\Image; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Section\Section; final class SectionTest ex
n; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\InvokeAddInCommandAction; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\OpenUriAction; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Section\Fiel
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/SectionTest.php", "language": "php", "file_size": 4131, "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\Telnyx\Tests; use Symfony\Component\Notifier\Bridge\Telnyx\Tel...
nsportFactory { return new TelnyxTransportFactory(); } public static function createProvider(): iterable { yield [ 'telnyx://host.test?from=+0611223344', 'telnyx://api_key@host.test?from=%2B061122334
ngRequiredOptionTestTrait; final class TelnyxTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): TelnyxTra
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportFactoryTest.php", "language": "php", "file_size": 1984, "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\LineBot; use Symfony\Component\Notifier\Exception...
{ return [self::SCHEME]; } public function create(Dsn $dsn): LineBotTransport { if (self::SCHEME !== $dsn->getScheme()) { throw new UnsupportedSchemeException($dsn, self::SCHEME, $this->getSupportedSchemes());
r\Transport\Dsn; /** * @author Yi-Jyun Pan <me@pan93.com> */ final class LineBotTransportFactory extends AbstractTransportFactory { private const SCHEME = 'linebot'; protected function getSupportedSchemes(): array
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LineBot/LineBotTransportFactory.php", "language": "php", "file_size": 1502, "cut_index": 524, "middle_length": 229 }
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\MicrosoftTeams\Tests\Section\Field; use PHPUnit\Framew...
.com/logo.png'); $this->assertSame($value, $field->toArray()['image']); } public function testTitle() { $field = (new Image()) ->title($value = 'Symfony is great!'); $this->assertSame($value, $field->toArr
age()) ->image($value = 'https://symfony
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Section/Field/ImageTest.php", "language": "php", "file_size": 861, "cut_index": 529, "middle_length": 52 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Bridge\Termii; use Symfony\Component\HttpClient\Exception\JsonException; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Sy...
ony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author gnito-org <https://github.com/gnito-org> */ final class TermiiTransport extends AbstractTransport { protected const H
mfony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symf
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Termii/TermiiTransport.php", "language": "php", "file_size": 3783, "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\GoIp; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Com...
ony\Contracts\HttpClient\Exception\ClientExceptionInterface; use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface; use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface; use Symfony\Contracts\HttpClient\Exception\Transport
mfony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symf
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GoIp/GoIpTransport.php", "language": "php", "file_size": 4485, "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\GoIp\Tests; use PHPUnit\Framework\Attributes\DataProvider; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClien...
tCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Ahmed Ghanem <ahmedghanem7361@gmail.com> */ final class GoIpTransportTest extends TransportTestCase { public stat
eption; use Symfony\Component\Notifier\Exception\TransportExceptionInterface; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTes
{ "filepath": "src/Symfony/Component/Notifier/Bridge/GoIp/Tests/GoIpTransportTest.php", "language": "php", "file_size": 3523, "cut_index": 614, "middle_length": 229 }
part\FormDataPart; use Symfony\Component\Notifier\Exception\RuntimeException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\MessageInterface...
rekas <p@tchwork.com> */ final class TwitterTransport extends AbstractTransport { protected const HOST = 'api.twitter.com'; private static string $nonce; public function __construct( #[\SensitiveParameter] private string $apiKey,
ntracts\HttpClient\ChunkInterface; use Symfony\Contracts\HttpClient\Exception\ExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; /** * @author Nicolas G
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Twitter/TwitterTransport.php", "language": "php", "file_size": 11379, "cut_index": 921, "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\Twitter; use Symfony\Component\Notifier\Exception\IncompleteDs...
if ('twitter' !== $scheme) { throw new UnsupportedSchemeException($dsn, 'twitter', $this->getSupportedSchemes()); } $apiKey = $this->getUser($dsn); [$apiSecret, $accessToken, $accessSecret] = explode(':', $this->getPa
; /** * @author Nicolas Grekas <p@tchwork.com> */ final class TwitterTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): TwitterTransport { $scheme = $dsn->getScheme();
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Twitter/TwitterTransportFactory.php", "language": "php", "file_size": 1721, "cut_index": 537, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\Matrix; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException; use Symfony\Component\Notifier\Exception\...
\HttpClient\ResponseInterface; /** * @author Frank Schulze <frank@akiber.de> */ final class MatrixTransport extends AbstractTransport { // not all Message Types are supported by Matrix API private const SUPPORTED_MSG_TYPES_BY_API = ['m.text', 'm
e Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Component\Uid\Uuid; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php", "language": "php", "file_size": 6958, "cut_index": 716, "middle_length": 229 }