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\Discord\Tests\Embeds; use PHPUnit\Framew...
->name('baz') ->value('qux') ); $this->assertSame([ 'title' => 'foo', 'description' => 'bar', 'fields' => [ [ 'name' => 'baz',
ends TestCase { public function testCanBeInstantiated() { $embed = (new DiscordEmbed()) ->title('foo') ->description('bar') ->addField((new DiscordFieldEmbedObject())
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/Embeds/DiscordEmbedTest.php", "language": "php", "file_size": 1097, "cut_index": 515, "middle_length": 229 }
he 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\Discord\Tests\Embeds; use PHPUnit\Framework\TestCase; use Symfony\Compon...
oo') ->iconUrl('http://icon-ur.l') ->proxyIconUrl('http://proxy-icon-ur.l'); $this->assertSame([ 'text' => 'foo', 'icon_url' => 'http://icon-ur.l', 'proxy_icon_url' => 'http://proxy-icon-
ew DiscordFooterEmbedObject()) ->text('f
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/Embeds/DiscordFooterEmbedObjectTest.php", "language": "php", "file_size": 902, "cut_index": 547, "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\Novu; use Symfony\Component\Notifier\Recipient\RecipientInterf...
} $overrides * * @see https://docs.novu.co/channels/email/#sending-email-overrides */ public function __construct( private readonly string $subscriberId, private readonly ?string $firstName = null, private reado
* from?: string, * senderName?: string, * replyTo?: string, * cc?: string[], * bcc?: string[] * }|null *
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Novu/NovuSubscriberRecipient.php", "language": "php", "file_size": 2003, "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\Novu; use Symfony\Component\Notifier\Except...
reate(Dsn $dsn): NovuTransport { $scheme = $dsn->getScheme(); if (self::SCHEME !== $scheme) { throw new UnsupportedSchemeException($dsn, self::SCHEME, $this->getSupportedSchemes()); } $key = $this->getUser($
toppy.nl> */ class NovuTransportFactory extends AbstractTransportFactory { private const SCHEME = 'novu'; protected function getSupportedSchemes(): array { return [self::SCHEME]; } public function c
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Novu/NovuTransportFactory.php", "language": "php", "file_size": 1231, "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\Novu\Tests; use Symfony\Component\Notifier\Bridge...
NovuTransportFactory(); } public static function supportsProvider(): iterable { yield [true, 'novu://host']; yield [false, 'somethingElse://host']; } public static function createProvider(): iterable { yie
nsport\TransportFactoryInterface; class NovuTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): TransportFactoryInterface { return new
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Novu/Tests/NovuTransportFactoryTest.php", "language": "php", "file_size": 1354, "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\OneSignal; use Symfony\Component\Notifier\Message\MessageOptionsInterface; use Symfony\Component\Notifier\Notification\Notification; /** ...
)]); $options->contents(['en' => $notification->getContent()]); return $options; } /** * @return $this */ public function headings(array $headings): static { $this->options['headings'] = $headings;
) { } /** * @return $this */ public static function fromNotification(Notification $notification): static { $options = new self(); $options->headings(['en' => $notification->getSubject(
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalOptions.php", "language": "php", "file_size": 3047, "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\Novu\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpC...
; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; class NovuTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): Trans
tException; use Symfony\Component\Notifier\Message\PushMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Novu/Tests/NovuTransportTest.php", "language": "php", "file_size": 2463, "cut_index": 563, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\OneSignal\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\JsonMockResponse; use Symfony\Component\Notifier\Bridge\OneSignal\OneSignalOptions; use Symfony\Component\Notifier\Bridge\OneSignal\O...
ontracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; /** * @author Tomas Norkūnas <norkunas.tom@gmail.com> */ final class OneSignalTransportTest extends TransportTestCase { public static function createTranspo
Symfony\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\C
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/OneSignalTransportTest.php", "language": "php", "file_size": 6524, "cut_index": 716, "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\Discord\Embeds; /** * @author Karoly Go...
/** * @return $this */ public function iconUrl(string $iconUrl): static { $this->options['icon_url'] = $iconUrl; return $this; } /** * @return $this */ public function proxyIconUrl(string $proxyIc
$this->options['name'] = $name; return $this; } /** * @return $this */ public function url(string $url): static { $this->options['url'] = $url; return $this; }
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Embeds/DiscordAuthorEmbedObject.php", "language": "php", "file_size": 1110, "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\OneSignal\Tests; use PHPUnit\Framework\TestCase; ...
->data(['foo' => 'bar']) ->sendAfter(new \DateTimeImmutable('Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)')) ->externalId('d637f30d-f709-4bed-9e2c-63637cb91894') ->isExternalUserId(); $this->assertSame([
s = (new OneSignalOptions()) ->headings(['en' => 'English Heading', 'fr' => 'French Heading']) ->contents(['en' => 'English Content', 'fr' => 'French Content']) ->url('https://example.com')
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/OneSignalOptionsTest.php", "language": "php", "file_size": 1470, "cut_index": 524, "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\Discord\Embeds; /** * @author Karoly Gossler <connor@connor.hu> */ final class DiscordFooterEmbedObject e...
function iconUrl(string $iconUrl): static { $this->options['icon_url'] = $iconUrl; return $this; } /** * @return $this */ public function proxyIconUrl(string $proxyIconUrl): static { $this->options['p
} /** * @return $this */ public
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Embeds/DiscordFooterEmbedObject.php", "language": "php", "file_size": 954, "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\Discord\Tests; use Symfony\Component\Notifier\Bridge\Discord\DiscordTransportFactory; us...
return new DiscordTransportFactory(); } public static function createProvider(): iterable { yield [ 'discord://host.test?webhook_id=testWebhookId', 'discord://token@host.test?webhook_id=testWebhookId',
it; final class DiscordTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): DiscordTransportFactory {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordTransportFactoryTest.php", "language": "php", "file_size": 2103, "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\Discord\Tests\Embeds; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Bridge\Discord\Embeds\...
') ->iconUrl('http://icon-ur.l') ->proxyIconUrl('http://proxy-icon-ur.l'); $this->assertSame([ 'name' => 'Doe', 'url' => 'http://ur.l', 'icon_url' => 'http://icon-ur.l', 'prox
->name('Doe') ->url('http://ur.l
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/Embeds/DiscordAuthorEmbedObjectTest.php", "language": "php", "file_size": 971, "cut_index": 582, "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\Novu; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\TransportExceptionInterface; us...
uthor Wouter van der Loop <woutervdl@toppy.nl> */ class NovuTransport extends AbstractTransport { protected const HOST = 'web.novu.co'; public function __construct( #[\SensitiveParameter] protected string $apiKey, ?HttpClientInter
\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @a
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Novu/NovuTransport.php", "language": "php", "file_size": 3447, "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\OneSignal; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\TransportException; use Symfon...
use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Tomas Norkūnas <norkunas.tom@gmail.com> */ final class OneSignalTransport extends AbstractTransport { protected const HOST = 'onesignal.com'; public function __construct(
nt\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalTransport.php", "language": "php", "file_size": 4484, "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\OneSignal\Tests; use Symfony\Component\Notifier\B...
return new OneSignalTransportFactory(); } public static function createProvider(): iterable { yield [ 'onesignal://app_id@host.test', 'onesignal://app_id:api_key@host.test', ]; } public s
as Norkūnas <norkunas.tom@gmail.com> */ final class OneSignalTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): OneSignalTransportFactory {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/OneSignalTransportFactoryTest.php", "language": "php", "file_size": 1507, "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\Discord\Embeds; /** * @author Karoly Gossler <connor@connor.hu> */ final class Discord...
*/ public function url(string $url): static { $this->options['url'] = $url; return $this; } /** * @return $this */ public function timestamp(\DateTimeInterface $timestamp): static { $this->optio
; } /** * @return $this */ public function description(string $description): static { $this->options['description'] = $description; return $this; } /** * @return $this
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Embeds/DiscordEmbed.php", "language": "php", "file_size": 2401, "cut_index": 563, "middle_length": 229 }
s 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\Discord\Tests\Embeds; use PHPUnit\Framework\TestCase; use Sym...
cordFieldEmbedObject()) ->name('foo') ->value('bar') ->inline(true); $this->assertSame([ 'name' => 'foo', 'value' => 'bar', 'inline' => true, ], $field->toArray());
eld = (new Dis
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/Embeds/DiscordFieldEmbedObjectTest.php", "language": "php", "file_size": 812, "cut_index": 536, "middle_length": 14 }
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\Novu\Tests; use PHPUnit\Framework\TestCase; use S...
'senderName' => 'No-Reply', ], ], [], ); $this->assertSame( [ 'firstName' => 'Joe', 'lastName' => 'Smith', 'email' => 'test@example
'Joe', 'Smith', 'test@example.com', null, null, null, [ 'email' => [ 'from' => 'no-reply@example.com',
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Novu/Tests/NovuOptionsTest.php", "language": "php", "file_size": 1401, "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\Octopush; use Symfony\Component\Notifier\Exceptio...
throw new UnsupportedSchemeException($dsn, 'octopush', $this->getSupportedSchemes()); } $userLogin = urlencode($this->getUser($dsn)); $apiKey = $this->getPassword($dsn); $from = $dsn->getRequiredOption('from');
in.com> */ final class OctopushTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): OctopushTransport { $scheme = $dsn->getScheme(); if ('octopush' !== $scheme) {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Octopush/OctopushTransportFactory.php", "language": "php", "file_size": 1402, "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\Octopush\Tests; use Symfony\Component\HttpClient\...
public static function createTransport(?HttpClientInterface $client = null): OctopushTransport { return new OctopushTransport('userLogin', 'apiKey', 'from', 'type', $client ?? new MockHttpClient()); } public static function toStringPr
fony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class OctopushTransportTest extends TransportTestCase {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Octopush/Tests/OctopushTransportTest.php", "language": "php", "file_size": 1431, "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\Prelude; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\...
ymfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Imad Zairig <imadzairig@gmail.com> */ final class PreludeTransport extends AbstractTransport { protected const HOS
Symfony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use S
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Prelude/PreludeTransport.php", "language": "php", "file_size": 3564, "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\Prelude\Tests; use Symfony\Component\Notifier\Bri...
function createProvider(): iterable { yield [ 'prelude://host.test?sender=0611223344', 'prelude://apiKey@host.test?sender=0611223344', ]; } public static function supportsProvider(): iterable {
portFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): PreludeTransportFactory { return new PreludeTransportFactory(); } public static
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Prelude/Tests/PreludeTransportFactoryTest.php", "language": "php", "file_size": 1452, "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\Novu; use Symfony\Component\Notifier\Message\MessageOptionsInt...
$overrides * * @see https://docs.novu.co/channels/email/#sending-email-overrides */ public function __construct( private readonly ?string $subscriberId = null, private readonly ?string $firstName = null, private r
from?: string, * senderName?: string, * replyTo?: string, * cc?: string[], * bcc?: string[] * }|null * }
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Novu/NovuOptions.php", "language": "php", "file_size": 1855, "cut_index": 537, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\Discord\Tests; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Bridge\Discord\DiscordOptions; use Symfony\Component\Notifier\Bridge\Discord\Embeds\DiscordAuthorEmbedObject; use Sy...
avatarUrl('http://ava.tar/pic.png') ->tts(true); $this->assertSame([ 'username' => 'name of the bot', 'avatar_url' => 'http://ava.tar/pic.png', 'tts' => true, ], $discordOptions->toArray());
\DiscordMediaEmbedObject; final class DiscordOptionsTest extends TestCase { public function testDiscordOptions() { $discordOptions = (new DiscordOptions()) ->username('name of the bot') ->
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordOptionsTest.php", "language": "php", "file_size": 7500, "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\OrangeSms\Tests; use Symfony\Component\Notifier\Bridge\OrangeSms\OrangeSmsTransportFacto...
ry { return new OrangeSmsTransportFactory(); } public static function createProvider(): iterable { yield [ 'orange-sms://host.test?from=FROM&sender_name=SENDER_NAME', 'orange-sms://CLIENT_ID:CLIENT_S
estTrait; final class OrangeSmsTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): OrangeSmsTransportFacto
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OrangeSms/Tests/OrangeSmsTransportFactoryTest.php", "language": "php", "file_size": 2251, "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\Octopush; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeExcep...
* @author Aurélien Martin <pro@aurelienmartin.com> */ final class OctopushTransport extends AbstractTransport { protected const HOST = 'www.octopush-dm.com'; public function __construct( private string $userLogin, #[\SensitivePar
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/Octopush/OctopushTransport.php", "language": "php", "file_size": 3046, "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\Octopush\Tests; use Symfony\Component\Notifier\Bridge\Octopush\OctopushTransportFactory;...
{ return new OctopushTransportFactory(); } public static function createProvider(): iterable { yield [ 'octopush://host.test?from=Heyliot&type=FR', 'octopush://userLogin:apiKey@host.test?from=Heyliot&t
Trait; final class OctopushTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): OctopushTransportFactory
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Octopush/Tests/OctopushTransportFactoryTest.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\Prelude; use Symfony\Component\Notifier\Exception...
supportedSchemeException($dsn, 'prelude', $this->getSupportedSchemes()); } $apiKey = $this->getUser($dsn); $sender = $dsn->getOption('sender'); // Sender might be optional if configured in Prelude dashboard $host = 'default
nal class PreludeTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): PreludeTransport { $scheme = $dsn->getScheme(); if ('prelude' !== $scheme) { throw new Un
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Prelude/PreludeTransportFactory.php", "language": "php", "file_size": 1321, "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\OneSignal; use Symfony\Component\Notifier\Excepti...
dSchemeException($dsn, 'onesignal', $this->getSupportedSchemes()); } $appId = $this->getUser($dsn); $apiKey = $this->getPassword($dsn); $defaultRecipientId = $dsn->getOption('defaultRecipientId'); $host = 'default'
il.com> */ final class OneSignalTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): OneSignalTransport { if ('onesignal' !== $dsn->getScheme()) { throw new Unsupporte
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalTransportFactory.php", "language": "php", "file_size": 1338, "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\OrangeSms; use Symfony\Component\Notifier\Excepti...
-sms', $this->getSupportedSchemes()); } $user = $this->getUser($dsn); $password = $this->getPassword($dsn); $from = $dsn->getRequiredOption('from'); $senderName = $dsn->getOption('sender_name'); $host = 'def
bstractTransportFactory { public function create(Dsn $dsn): OrangeSmsTransport { $scheme = $dsn->getScheme(); if ('orange-sms' !== $scheme) { throw new UnsupportedSchemeException($dsn, 'orange
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OrangeSms/OrangeSmsTransportFactory.php", "language": "php", "file_size": 1344, "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\Prelude; use Symfony\Component\Notifier\Message\MessageOptionsInterface; /** * @author...
ing $templateId): static { $this->options['template_id'] = $templateId; return $this; } /** * @return $this */ public function variables(array $variables): static { $this->options['variables'] = $vari
public function toArray(): array { return $this->options; } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function templateId(str
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Prelude/PreludeOptions.php", "language": "php", "file_size": 2375, "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\OrangeSms\Tests; use Symfony\Component\HttpClient...
public static function createTransport(?HttpClientInterface $client = null): OrangeSmsTransport { return (new OrangeSmsTransport('CLIENT_ID', 'CLIENT_SECRET', 'FROM', 'SENDER_NAME', $client ?? new MockHttpClient()))->setHost('host.test');
Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class OrangeSmsTransportTest extends TransportTestCase {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/OrangeSms/Tests/OrangeSmsTransportTest.php", "language": "php", "file_size": 1495, "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\Prelude\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\JsonMockResponse; use Symfony\Com...
ts\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; final class PreludeTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterfa
tifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tes
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Prelude/Tests/PreludeTransportTest.php", "language": "php", "file_size": 4188, "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\Ntfy; use Symfony\Component\Clock\Clock; use Symfony\Component\Clock\ClockInterface; use Symfony\Component\Notifier\Exception\LogicExceptio...
_MIN = 1; private ClockInterface $clock; public function __construct( private array $options = [], ?ClockInterface $clock = null, ) { $this->clock = $clock ?? Clock::get(); } public static function fromNotific
class NtfyOptions implements MessageOptionsInterface { public const PRIORITY_URGENT = 5; public const PRIORITY_HIGH = 4; public const PRIORITY_DEFAULT = 3; public const PRIORITY_LOW = 2; public const PRIORITY
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/NtfyOptions.php", "language": "php", "file_size": 4466, "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\Yunpian\Tests; use Symfony\Component\HttpClient\MockHttpClient...
npianTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): YunpianTransport { return new YunpianTransport('api_key', $client ?? new MockHttpClient()); } public static
fony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class Yu
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/YunpianTransportTest.php", "language": "php", "file_size": 1875, "cut_index": 537, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\Mastodon; use Symfony\Component\Mime\Part\DataPart; use Symfony\Component\Mime\Part\File; use Symfony\Component\Mime\Part\Multipart\FormDataPart; use Symfony\Component\Notifier\Exception\RuntimeException; use Symfony\Component\Notifier\Excep...
ption\ExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; /** * @author Quentin Dequippe <quentin@dequippe.tech> * * @see https://docs.joinmastodon.org */ final class MastodonTr
ssageInterface; use Symfony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exce
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Mastodon/MastodonTransport.php", "language": "php", "file_size": 5281, "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\Mastodon\Tests; use Symfony\Component\Notifier\Bridge\Mastodon...
donTransportFactory(); } public static function createProvider(): iterable { yield [ 'mastodon://host.test', 'mastodon://accessToken@host.test', ]; yield [ 'mastodon://example.com',
uentin@dequippe.tech> */ class MastodonTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): MastodonTransportFactory { return new Masto
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Mastodon/Tests/MastodonTransportFactoryTest.php", "language": "php", "file_size": 1749, "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\Mastodon\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Compon...
; /** * @author Quentin Dequippe <quentin@dequippe.tech> */ class MastodonTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): MastodonTransport { return (new MastodonTran
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/Mastodon/Tests/MastodonTransportTest.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\Zendesk; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeExcept...
* @author Joseph Bielawski <stloyd@gmail.com> */ final class ZendeskTransport extends AbstractTransport { public function __construct( private string $email, #[\SensitiveParameter] private string $token, ?HttpClientInterface $
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/Zendesk/ZendeskTransport.php", "language": "php", "file_size": 3198, "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\LinkedIn; use Symfony\Component\Notifier\Exceptio...
throw new UnsupportedSchemeException($dsn, 'linkedin', $this->getSupportedSchemes()); } $authToken = $this->getUser($dsn); $accountId = $this->getPassword($dsn); $host = 'default' === $dsn->getHost() ? null : $dsn->
gmail.com> */ final class LinkedInTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): LinkedInTransport { $scheme = $dsn->getScheme(); if ('linkedin' !== $scheme) {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransportFactory.php", "language": "php", "file_size": 1287, "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\LinkedIn\Share; use Symfony\Component\Notifier\Exception\Logic...
t PROCESSING_FAILED = 'PROCESSING_FAILED'; public const DELETED = 'DELETED'; public const PUBLISHED_EDITED = 'PUBLISHED_EDITED'; private const AVAILABLE_LIFECYCLE = [ self::DRAFT, self::PUBLISHED, self::PROCESSING_FAILE
ma lifecycleState section */ final class LifecycleStateShare extends AbstractLinkedInShare { public const DRAFT = 'DRAFT'; public const PUBLISHED = 'PUBLISHED'; public const PROCESSING = 'PROCESSING'; public cons
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Share/LifecycleStateShare.php", "language": "php", "file_size": 1646, "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\LinkedIn\Share; use Symfony\Component\Notifier\Exception\LogicException; /** * @author...
private const MEMBER_NETWORK = [ self::CONNECTIONS, self::PUBLIC, self::LOGGED_IN, ]; private const AVAILABLE_VISIBILITY = [ self::MEMBER_NETWORK_VISIBILITY, self::SPONSORED_CONTENT_VISIBILITY, ]; p
const SPONSORED_CONTENT_VISIBILITY = 'SponsoredContentVisibility'; public const CONNECTIONS = 'CONNECTIONS'; public const PUBLIC = 'PUBLIC'; public const LOGGED_IN = 'LOGGED_IN'; public const DARK = 'DARK';
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Share/VisibilityShare.php", "language": "php", "file_size": 2054, "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\LinkedIn\Tests; use Symfony\Component\Notifier\Br...
static function createProvider(): iterable { yield [ 'linkedin://host.test', 'linkedin://accessToken:UserId@host.test', ]; } public static function supportsProvider(): iterable { yield [true,
ransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): LinkedInTransportFactory { return new LinkedInTransportFactory(); } public
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportFactoryTest.php", "language": "php", "file_size": 1389, "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\FreeMobile; use Symfony\Component\Notifier\Except...
throw new UnsupportedSchemeException($dsn, 'freemobile', $this->getSupportedSchemes()); } $login = $this->getUser($dsn); $password = $this->getPassword($dsn); $phone = $dsn->getRequiredOption('phone'); $hos
com> */ final class FreeMobileTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): FreeMobileTransport { $scheme = $dsn->getScheme(); if ('freemobile' !== $scheme) {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FreeMobile/FreeMobileTransportFactory.php", "language": "php", "file_size": 1342, "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\FreeMobile\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component...
Test extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): FreeMobileTransport { return new FreeMobileTransport('login', 'pass', '0611223344', $client ?? new MockHttpClient()); } p
tifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class FreeMobileTransport
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php", "language": "php", "file_size": 2133, "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\Yunpian; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\...
ntracts\HttpClient\Exception\ExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Mathieu Santostefano <msantostefano@protonmail.com> */ class YunpianTransport extends AbstractTransport { protected const HOST = 'sm
Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Co
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Yunpian/YunpianTransport.php", "language": "php", "file_size": 2818, "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\Yunpian\Tests; use Symfony\Component\Notifier\Bri...
function createProvider(): iterable { yield [ 'yunpian://host.test', 'yunpian://api_key@host.test', ]; } public static function supportsProvider(): iterable { yield [true, 'yunpian://api_key
portFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): YunpianTransportFactory { return new YunpianTransportFactory(); } public static
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/YunpianTransportFactoryTest.php", "language": "php", "file_size": 1327, "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\Mastodon; use Symfony\Component\Mime\Part\File; u...
* @return $this */ public function poll(array $choices, int $expiresIn): static { $this->options['poll'] = [ 'options' => $choices, 'expires_in' => $expiresIn, ]; return $this; }
= [], ) { } public function toArray(): array { return $this->options; } public function getRecipientId(): ?string { return null; } /** * @param string[] $choices *
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Mastodon/MastodonOptions.php", "language": "php", "file_size": 1400, "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\LinkedIn; use Symfony\Component\Notifier\Bridge\LinkedIn\Share\AuthorShare; use Symfony\Component\Notifier\Bridge\LinkedIn\Share\LifecycleS...
on __construct( private array $options = [], ) { } public function toArray(): array { return $this->options; } public function getRecipientId(): ?string { return null; } public static function
MessageOptionsInterface; use Symfony\Component\Notifier\Notification\Notification; /** * @author Smaïne Milianni <smaine.milianni@gmail.com> */ final class LinkedInOptions implements MessageOptionsInterface { public functi
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInOptions.php", "language": "php", "file_size": 3570, "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\LinkedIn; use Symfony\Component\Notifier\Bridge\LinkedIn\Share\AuthorShare; use Symfony\Component\Notifier\Exception\TransportException; us...
face; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Smaïne Milianni <smaine.milianni@gmail.com> * * @see https://docs.microsoft.com/en-us/linkedin/marketing/i
; use Symfony\Component\Notifier\Message\MessageInterface; use Symfony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInter
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php", "language": "php", "file_size": 4549, "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\LinkedIn\Share; use Symfony\Component\Notifier\Exception\LogicException; /** * @author...
_UP = 'SIGN_UP'; public const SUBSCRIBE = 'SUBSCRIBE '; public const REGISTER = 'REGISTER'; public const ALL = [ self::LEARN_MORE, self::APPLY_NOW, self::DOWNLOAD, self::GET_QUOTE, self::SIGN_UP,
aShare extends AbstractLinkedInShare { public const LEARN_MORE = 'LEARN_MORE'; public const APPLY_NOW = 'APPLY_NOW '; public const DOWNLOAD = 'DOWNLOAD'; public const GET_QUOTE = 'GET_QUOTE'; public const SIGN
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Share/ShareMediaShare.php", "language": "php", "file_size": 2060, "cut_index": 563, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\LinkedIn\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Component\Notifier\Bridge\LinkedIn\LinkedInTransport; use Symfony\Component\Notifier\Exception\LogicExceptio...
racts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; final class LinkedInTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): LinkedInTransport
Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Cont
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php", "language": "php", "file_size": 5208, "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\FreeMobile; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Exception\TransportException;...
nterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Antoine Makdessi <amakdessi@me.com> */ final class FreeMobileTransport extends AbstractTransport { protected const HOST = 'smsapi.free-mobile.fr/sendmsg'; public func
ony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionI
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FreeMobile/FreeMobileTransport.php", "language": "php", "file_size": 3383, "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\Yunpian; use Symfony\Component\Notifier\Exc...
ortedSchemeException($dsn, 'yunpian', $this->getSupportedSchemes()); } $apiKey = $this->getUser($dsn); $host = 'default' === $dsn->getHost() ? null : $dsn->getHost(); return (new YunpianTransport($apiKey, $this->client, $t
stefano@protonmail.com> */ class YunpianTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): YunpianTransport { if ('yunpian' !== $dsn->getScheme()) { throw new Unsupp
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Yunpian/YunpianTransportFactory.php", "language": "php", "file_size": 1165, "cut_index": 518, "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\Zendesk; use Symfony\Component\Notifier\Message\MessageOptionsInterface; /** * @author Joseph Bielawski <stloyd@gmail.com> */ fi...
>priority, ]; } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function priority(string $priority): static { $this->priority = $priority; ret
{ return [ 'priority' => $this-
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Zendesk/ZendeskOptions.php", "language": "php", "file_size": 933, "cut_index": 606, "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\LinkedIn\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Bridge\LinkedIn\LinkedInOptions; use Symfony\Component\Notif...
$options = new LinkedInOptions([ 'contentCertificationRecord' => 'test_record', 'firstPublishedAt' => 1234567890, ]); $this->assertSame([ 'contentCertificationRecord' => 'test_record', 'first
fony\Component\Notifier\Bridge\LinkedIn\Share\VisibilityShare; use Symfony\Component\Notifier\Notification\Notification; final class LinkedInOptionsTest extends TestCase { public function testLinkedInOptions() {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInOptionsTest.php", "language": "php", "file_size": 4937, "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\Mastodon; use Symfony\Component\Notifier\Ex...
throw new UnsupportedSchemeException($dsn, 'mastodon', $this->getSupportedSchemes()); } $token = $this->getUser($dsn); $host = $dsn->getHost(); $port = $dsn->getPort(); return (new MastodonTransport($tok
equippe.tech> */ final class MastodonTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): MastodonTransport { $scheme = $dsn->getScheme(); if ('mastodon' !== $scheme) {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Mastodon/MastodonTransportFactory.php", "language": "php", "file_size": 1177, "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\FreeMobile\Tests; use Symfony\Component\Notifier\Bridge\FreeMo...
ory(): FreeMobileTransportFactory { return new FreeMobileTransportFactory(); } public static function createProvider(): iterable { yield [ 'freemobile://host.test?phone=0611223344', 'freemobile://log
r\Test\MissingRequiredOptionTestTrait; final class FreeMobileTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFact
{ "filepath": "src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportFactoryTest.php", "language": "php", "file_size": 1888, "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\Zendesk\Tests; use Symfony\Component\Notifier\Bri...
function createProvider(): iterable { yield [ 'zendesk://subdomain.zendesk.com', 'zendesk://email:token@subdomain.zendesk.com', ]; } public static function supportsProvider(): iterable { yie
portFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): ZendeskTransportFactory { return new ZendeskTransportFactory(); } public static
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Zendesk/Tests/ZendeskTransportFactoryTest.php", "language": "php", "file_size": 1451, "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\MessageMedia; use Symfony\Component\Notifier\Message\MessageOptionsInterface; /** * @a...
_url'] = $callbackUrl; return $this; } /** * @return $this */ public function deliveryReport(bool $deliveryReport): static { $this->options['delivery_report'] = $deliveryReport; return $this; }
) { } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function callbackUrl(string $callbackUrl): static { $this->options['callback
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaOptions.php", "language": "php", "file_size": 2167, "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\MessageMedia; use Symfony\Component\Notifier\Exce...
e) { throw new UnsupportedSchemeException($dsn, 'messagemedia', $this->getSupportedSchemes()); } $apiKey = $this->getUser($dsn); $apiSecret = $this->getPassword($dsn); $from = $dsn->getOption('from'); $h
il.com> */ final class MessageMediaTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): MessageMediaTransport { $scheme = $dsn->getScheme(); if ('messagemedia' !== $schem
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaTransportFactory.php", "language": "php", "file_size": 1349, "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\MessageMedia\Tests; use Symfony\Component\Notifier\Bridge\Mess...
public static function createProvider(): iterable { yield [ 'messagemedia://host.test', 'messagemedia://apiKey:apiSecret@host.test', ]; yield [ 'messagemedia://host.test?from=TEST',
iaTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): MessageMediaTransportFactory { return new MessageMediaTransportFactory(); }
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/MessageMediaTransportFactoryTest.php", "language": "php", "file_size": 1618, "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\MessageMedia\Tests; use PHPUnit\Framework\Attributes\DataProvider; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\H...
ony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class MessageMediaTransportTest extends TransportTestCase { public static function
omponent\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\TransportExceptionInterface; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symf
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/MessageMediaTransportTest.php", "language": "php", "file_size": 3071, "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\Iqsms; use Symfony\Component\Notifier\Exception\U...
throw new UnsupportedSchemeException($dsn, 'iqsms', $this->getSupportedSchemes()); } $login = $this->getUser($dsn); $password = $this->getPassword($dsn); $from = $dsn->getRequiredOption('from'); $host = 'default'
ya@gmail.com> */ final class IqsmsTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): IqsmsTransport { $scheme = $dsn->getScheme(); if ('iqsms' !== $scheme) {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Iqsms/IqsmsTransportFactory.php", "language": "php", "file_size": 1317, "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\Pushy; use Symfony\Component\Notifier\Bridge\Pushy\Enum\InterruptionLevel; use Symfony\Component\Notifier\Exception\InvalidArgumentExceptio...
cation(Notification $notification): self { $options = new self(); $options->interruptionLevel( match ($notification->getImportance()) { Notification::IMPORTANCE_URGENT => InterruptionLevel::CRITICAL,
s://pushy.me/docs/api/send-notifications */ final class PushyOptions implements MessageOptionsInterface { public function __construct( private array $options = [], ) { } public static function fromNotifi
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/PushyOptions.php", "language": "php", "file_size": 4894, "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\Pushy; use Symfony\Component\Notifier\Excep...
sn->getScheme()) { throw new UnsupportedSchemeException($dsn, 'pushy', $this->getSupportedSchemes()); } $apiKey = $dsn->getUser(); $host = 'default' === $dsn->getHost() ? null : $dsn->getHost(); $port = $dsn->ge
portInterface; /** * @author Joseph Bielawski <stloyd@gmail.com> */ final class PushyTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): TransportInterface { if ('pushy' !== $d
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/PushyTransportFactory.php", "language": "php", "file_size": 1224, "cut_index": 518, "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\Pushy\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Bridge\Pushy...
->interruptionLevel(InterruptionLevel::TIME_SENSITIVE) ->body('Hello world!') ->contentAvailable(false) ->mutableContent(true) ->ttl(3600) ->threadId(123); self::assertSame([
public function testPushyOptions() { $options = (new PushyOptions()) ->to('device') ->collapseKey('key') ->schedule($schedule = (time() + 3600)) ->badge(1)
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/Tests/PushyOptionsTest.php", "language": "php", "file_size": 2402, "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\Pushy\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\JsonMockResponse; use Symfony\Compo...
tInterface; use Symfony\Contracts\HttpClient\ResponseInterface; final class PushyTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): PushyTransport { return new PushyTransp
PushMessage; use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClien
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/Tests/PushyTransportTest.php", "language": "php", "file_size": 3612, "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\MessageBird; use Symfony\Component\Notifier\Excep...
throw new UnsupportedSchemeException($dsn, 'messagebird', $this->getSupportedSchemes()); } $token = $this->getUser($dsn); $from = $dsn->getRequiredOption('from'); $host = 'default' === $dsn->getHost() ? null : $dsn
t> */ final class MessageBirdTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): MessageBirdTransport { $scheme = $dsn->getScheme(); if ('messagebird' !== $scheme) {
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MessageBird/MessageBirdTransportFactory.php", "language": "php", "file_size": 1286, "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\MessageBird\Tests; use Symfony\Component\Notifier\Bridge\Messa...
Factory(): MessageBirdTransportFactory { return new MessageBirdTransportFactory(); } public static function createProvider(): iterable { yield [ 'messagebird://host.test?from=0611223344', 'messagebir
fier\Test\MissingRequiredOptionTestTrait; final class MessageBirdTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function create
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/MessageBirdTransportFactoryTest.php", "language": "php", "file_size": 1792, "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\LinkedIn\Share; use Symfony\Component\Notifier\Exception\LogicException; /** * @author...
const LEARNING_COURSE = 'LEARNING_COURSE'; public const JOB = 'JOB'; public const QUESTION = 'QUESTION'; public const ANSWER = 'ANSWER'; public const CAROUSEL = 'CAROUSEL'; public const TOPIC = 'TOPIC'; public const NATIVE_DOCUMENT
hareContentShare extends AbstractLinkedInShare { public const ARTICLE = 'ARTICLE'; public const IMAGE = 'IMAGE'; public const NONE = 'NONE'; public const RICH = 'RICH'; public const VIDEO = 'VIDEO'; public
{ "filepath": "src/Symfony/Component/Notifier/Bridge/LinkedIn/Share/ShareContentShare.php", "language": "php", "file_size": 2612, "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\Zendesk\Tests; use Symfony\Component\HttpClient\M...
blic static function createTransport(?HttpClientInterface $client = null): ZendeskTransport { return (new ZendeskTransport('testEmail', 'testToken', $client ?? new MockHttpClient()))->setHost('test.zendesk.com'); } public static functi
use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Contracts\HttpClient\HttpClientInterface; final class ZendeskTransportTest extends TransportTestCase { pu
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Zendesk/Tests/ZendeskTransportTest.php", "language": "php", "file_size": 1456, "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\MessageMedia\Tests; use PHPUnit\Framework\TestCas...
->metadata(['test_metadata']) ->scheduled('test_scheduled') ->subject('test_subject'); self::assertSame([ 'media' => ['test_media'], 'callback_url' => 'test_callback_url', 'format'
eMediaOptions = (new MessageMediaOptions())-> media(['test_media']) ->callbackUrl('test_callback_url') ->format('test_format') ->deliveryReport(true) ->expiry(999)
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/MessageMediaOptionsTest.php", "language": "php", "file_size": 1298, "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\Iqsms\Tests; use Symfony\Component\Notifier\Bridge\Iqsms\Iqsms...
tFactory { return new IqsmsTransportFactory(); } public static function createProvider(): iterable { yield [ 'iqsms://host.test?from=FROM', 'iqsms://login:password@host.test?from=FROM', ];
equiredOptionTestTrait; final class IqsmsTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): IqsmsTranspor
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/IqsmsTransportFactoryTest.php", "language": "php", "file_size": 1924, "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\Pushy; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Exception\TransportException; use ...
face; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Joseph Bielawski <stloyd@gmail.com> */ final class PushyTransport extends AbstractTransport { protected const HOST = 'api.pushy.me'; public function __construct(
omponent\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInter
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/PushyTransport.php", "language": "php", "file_size": 3474, "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\MessageBird; use Symfony\Component\Notifier\Message\MessageOptionsInterface; /** * @au...
eatedDatetime'] = $createdDatetime; return $this; } /** * @return $this */ public function dataCoding(string $dataCoding): static { $this->options['dataCoding'] = $dataCoding; return $this; } /*
) { } public function getRecipientId(): ?string { return null; } /** * @return $this */ public function createdDatetime(string $createdDatetime): static { $this->options['cr
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MessageBird/MessageBirdOptions.php", "language": "php", "file_size": 2912, "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\MessageBird\Tests; use PHPUnit\Framework\TestCase; use Symfony...
gateway(999) ->groupIds(['test_group_ids']) ->mClass(888) ->reference('test_reference') ->reportUrl('test_report_url') ->shortenUrls(true) ->typeDetails('test_type_details')
w MessageBirdOptions()) ->type('test_type') ->scheduledDatetime('test_scheduled_datetime') ->createdDatetime('test_created_datetime') ->dataCoding('test_data_coding') ->
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/MessageBirdOptionsTest.php", "language": "php", "file_size": 1636, "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\Zendesk; use Symfony\Component\Notifier\Exception\IncompleteDs...
if ('zendesk' !== $scheme) { throw new UnsupportedSchemeException($dsn, 'zendesk', $this->getSupportedSchemes()); } $emailAddress = $this->getUser($dsn); $apiToken = $this->getPassword($dsn); $host = $thi
; /** * @author Joseph Bielawski <stloyd@gmail.com> */ final class ZendeskTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): ZendeskTransport { $scheme = $dsn->getScheme();
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Zendesk/ZendeskTransportFactory.php", "language": "php", "file_size": 1697, "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\Ntfy; use Symfony\Component\Notifier\Exception\UnsupportedSche...
{ throw new UnsupportedSchemeException($dsn, 'ntfy', $this->getSupportedSchemes()); } $host = 'default' === $dsn->getHost() ? null : $dsn->getHost(); $topic = substr($dsn->getPath(), 1); if (\in_array($dsn->ge
* @author Mickael Perraud <mikaelkael.fr@gmail.com> */ final class NtfyTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): TransportInterface { if ('ntfy' !== $dsn->getScheme())
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/NtfyTransportFactory.php", "language": "php", "file_size": 1677, "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\Ntfy\Tests; use Symfony\Component\Notifier\Bridge...
} public static function createProvider(): iterable { yield [ 'ntfy://ntfy.sh/test', 'ntfy://user:password@default/test', ]; yield [ 'ntfy://ntfy.sh/test', 'ntfy://:passwor
rraud <mikaelkael.fr@gmail.com> */ final class NtfyTransportFactoryTest extends AbstractTransportFactoryTestCase { public function createFactory(): TransportFactoryInterface { return new NtfyTransportFactory();
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/Tests/NtfyTransportFactoryTest.php", "language": "php", "file_size": 1476, "cut_index": 524, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\Telegram; use Symfony\Component\Notifier\Bridge\Telegram\Reply\Markup\AbstractTelegramReplyMarkup; use Symfony\Component\Notifier\Message\MessageOptionsInterface; /** * @author Mihail Krasilnikov <mihail.krasilnikov.j@gmail.com> */ final ...
{ return $this->options['chat_id'] ?? null; } /** * @return $this */ public function chatId(string $id): static { $this->options['chat_id'] = $id; return $this; } /** * @return $this
= 'MarkdownV2'; public function __construct( private array $options = [], ) { } public function toArray(): array { return $this->options; } public function getRecipientId(): ?string
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/TelegramOptions.php", "language": "php", "file_size": 6622, "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\Telegram; use Symfony\Component\Notifier\Exception\IncompleteD...
etScheme()) { throw new UnsupportedSchemeException($dsn, 'telegram', $this->getSupportedSchemes()); } $token = $this->getToken($dsn); $channel = $dsn->getOption('channel'); $host = 'default' === $dsn->getHost()
n; /** * @author Fabien Potencier <fabien@symfony.com> */ final class TelegramTransportFactory extends AbstractTransportFactory { public function create(Dsn $dsn): TelegramTransport { if ('telegram' !== $dsn->g
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/TelegramTransportFactory.php", "language": "php", "file_size": 1852, "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\Telegram\Tests; use Symfony\Component\Notifier\Bridge\Telegram...
on createProvider(): iterable { yield ['telegram://host.test?channel=testChannel', 'telegram://user:password@host.test?channel=testChannel']; // Tests for `sslmode` option yield ['telegram://host.test?channel=testChannel&sslmod
ryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; public function createFactory(): TelegramTransportFactory { return new TelegramTransportFactory(); } public static functi
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportFactoryTest.php", "language": "php", "file_size": 1682, "cut_index": 537, "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\Telegram\Reply\Markup; use Symfony\Com...
[] $buttons * * @return $this */ public function inlineKeyboard(array $buttons): static { $buttons = array_map(static fn (InlineKeyboardButton $button) => $button->toArray(), $buttons); $this->options['inline_keyboar
nekeyboardmarkup */ final class InlineKeyboardMarkup extends AbstractTelegramReplyMarkup { public function __construct() { $this->options['inline_keyboard'] = []; } /** * @param InlineKeyboardButton
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/InlineKeyboardMarkup.php", "language": "php", "file_size": 1047, "cut_index": 513, "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\MessageMedia; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeE...
ptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Adrian Nguyen <vuphuong87@gmail.com> */ final class MessageMediaTransport extends AbstractTransport { protected const HOST = 'api.messagemedia.com'; public func
Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface; use Symfony\Contracts\HttpClient\Exception\TransportExce
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaTransport.php", "language": "php", "file_size": 3664, "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\Iqsms\Tests; use Symfony\Component\HttpClient\Moc...
ic function createTransport(?HttpClientInterface $client = null): IqsmsTransport { return new IqsmsTransport('login', 'password', 'sender', $client ?? new MockHttpClient()); } public static function toStringProvider(): iterable {
onent\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; final class IqsmsTransportTest extends TransportTestCase { public stat
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/IqsmsTransportTest.php", "language": "php", "file_size": 1386, "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\MessageBird; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeEx...
** * @author Vasilij Duško <vasilij@prado.lt> */ final class MessageBirdTransport extends AbstractTransport { protected const HOST = 'rest.messagebird.com'; public function __construct( #[\SensitiveParameter] private string $token,
otifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MessageBird/MessageBirdTransport.php", "language": "php", "file_size": 3257, "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\MessageBird\Tests; use Symfony\Component\HttpClient\MockHttpCl...
final class MessageBirdTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): MessageBirdTransport { return new MessageBirdTransport('token', 'from', $client ?? new MockHttpCl
essage; 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/MessageBird/Tests/MessageBirdTransportTest.php", "language": "php", "file_size": 1597, "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\Ntfy\Tests; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Component\...
/ final class NtfyTransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null): NtfyTransport { return new NtfyTransport('test', true, $client ?? new MockHttpClient()); } pub
; use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; /** * @author Mickael Perraud <mikaelkael.fr@gmail.com> *
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/Tests/NtfyTransportTest.php", "language": "php", "file_size": 4618, "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\Telegram\Tests; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Bridge\Telegr...
$returnedOptions = $options->answerCallbackQuery('123', true, $cacheTime); $this->assertSame($options, $returnedOptions); $this->assertEquals( [ 'callback_query_id' => '123', 'show_alert' => tr
final class TelegramOptionsTest extends TestCase { #[DataProvider('validCacheTimeDataProvider')] public function testAnswerCallbackQueryWithCacheTime(int $cacheTime) { $options = new TelegramOptions();
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramOptionsTest.php", "language": "php", "file_size": 5088, "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\Telegram\Reply\Markup; use Symfony\Component\Notifier\Bridge\T...
*/ public function keyboard(array $buttons): static { $buttons = array_map(static fn (KeyboardButton $button) => $button->toArray(), $buttons); $this->options['keyboard'][] = $buttons; return $this; } /** * @
s ReplyKeyboardMarkup extends AbstractTelegramReplyMarkup { public function __construct() { $this->options['keyboard'] = []; } /** * @param KeyboardButton[] $buttons * * @return $this
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/ReplyKeyboardMarkup.php", "language": "php", "file_size": 1536, "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\Iqsms; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Componen...
\Contracts\HttpClient\HttpClientInterface; /** * @author Oleksandr Barabolia <alexandrbarabolya@gmail.com> */ final class IqsmsTransport extends AbstractTransport { protected const HOST = 'api.iqsms.ru'; public function __construct( pri
r\Message\SmsMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Iqsms/IqsmsTransport.php", "language": "php", "file_size": 3040, "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\Ntfy; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException...
erface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Mickael Perraud <mikaelkael.fr@gmail.com> */ final class NtfyTransport extends AbstractTransport { protected const HOST = 'ntfy.sh'; private ?string $user = null; pr
\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Transport\AbstractTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInt
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/NtfyTransport.php", "language": "php", "file_size": 4359, "cut_index": 614, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier\Bridge\Telegram; use Symfony\Component\Notifier\Exception\MultipleExclusiveOptionsUsedException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException; use Symfony\Comp...
, send a message in Telegram with the user you want * and then execute curl 'https://api.telegram.org/bot%token%/getUpdates' | json_pp * command. * * @author Fabien Potencier <fabien@symfony.com> */ final class TelegramTransport extends AbstractTransp
ctTransport; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * To get the chat id
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/TelegramTransport.php", "language": "php", "file_size": 8156, "cut_index": 716, "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\Pushy\Tests; use Symfony\Component\Not...
Key@api.pushy.me']; } public static function supportsProvider(): iterable { yield [true, 'pushy://apiKey']; yield [false, 'somethingElse://apiKey']; } public static function unsupportedSchemeProvider(): iterable {
{ public function createFactory(): PushyTransportFactory { return new PushyTransportFactory(); } public static function createProvider(): iterable { yield ['pushy://api.pushy.me', 'pushy://api
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Pushy/Tests/PushyTransportFactoryTest.php", "language": "php", "file_size": 1048, "cut_index": 513, "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\Ntfy\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Notifier\Bridge\Ntfy\N...
setTags(['tag1', 'tag2']) ->addTag('tag3') ->setDelay($delay) ->setActions([['action' => 'view', 'label' => 'View', 'url' => 'https://test.com']]) ->addAction(['action' => 'http', 'label' => 'Open', 'url' =>
)->add(new \DateInterval('PT1M')); $ntfyOptions = (new NtfyOptions()) ->setMessage('test message') ->setTitle('message title') ->setPriority(NtfyOptions::PRIORITY_URGENT) ->
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Ntfy/Tests/NtfyOptionsTest.php", "language": "php", "file_size": 2102, "cut_index": 563, "middle_length": 229 }
yield ['telegram://api.telegram.org', self::createTransport()]; yield ['telegram://api.telegram.org?channel=testChannel', self::createTransport(null, 'testChannel')]; yield ['telegram://api.telegram.org?sslmode=disable', self::createTransport(null, null, true)]; yield ['telegram://api.teleg...
SendWithErrorResponseThrowsTransportException() { $this->expectException(TransportException::class); $this->expectExceptionMessageMatches('/post.+testDescription.+400/'); $client = new MockHttpClient(new MockResponse(json_encod
w ChatMessage('Hello!')]; } public static function unsupportedMessagesProvider(): iterable { yield [new SmsMessage('0611223344', 'Hello!')]; yield [new DummyMessage()]; } public function test
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php", "language": "php", "file_size": 42125, "cut_index": 2151, "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\Brevo\Tests; use Symfony\Component\Notifier\Bridge\Brevo\Brevo...
tFactory { return new BrevoTransportFactory(); } public static function createProvider(): iterable { yield [ 'brevo://host.test?sender=0611223344', 'brevo://apiKey@host.test?sender=0611223344',
equiredOptionTestTrait; final class BrevoTransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; use MissingRequiredOptionTestTrait; public function createFactory(): BrevoTranspor
{ "filepath": "src/Symfony/Component/Notifier/Bridge/Brevo/Tests/BrevoTransportFactoryTest.php", "language": "php", "file_size": 1768, "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\Section; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action\Acti...
sage-card-reference#section-fields */ final class Section implements SectionInterface { private array $options = []; /** * @return $this */ public function title(string $title): static { $this->options['title'] = $title;
r\Bridge\MicrosoftTeams\Section\Field\Image; /** * @author Edouard Lescot <edouard.lescot@gmail.com> * @author Oskar Stark <oskarstark@googlemail.com> * * @see https://docs.microsoft.com/en-us/outlook/actionable-messages/mes
{ "filepath": "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Section.php", "language": "php", "file_size": 2289, "cut_index": 563, "middle_length": 229 }