prefix
stringlengths
512
512
suffix
stringlengths
256
256
middle
stringlengths
14
229
meta
dict
an, orta goýy deri reňki, orta açyk deri reňki', '👩🏾‍❤‍💋‍👩🏽' => 'posa: zenan, zenan, orta goýy deri reňki, orta deri reňki', '👩🏾‍❤‍💋‍👩🏾' => 'posa: zenan, zenan, orta goýy deri reňki', '👩🏾‍❤‍💋‍👩🏿' => 'posa: zenan, zenan, orta goýy deri reňki, goýy deri reňki', '👩🏿‍❤‍💋‍👩🏻' => 'posa: ze...
eş tutýan adamlar: açyk deri reňki, orta deri reňki', '🧑🏻‍🫯‍🧑🏾' => 'göreş tutýan adamlar: açyk deri reňki, orta goýy deri reňki', '🧑🏻‍🫯‍🧑🏿' => 'göreş tutýan adamlar: açyk deri reňki, goýy deri reňki', '🧑🏼‍🫯‍🧑🏻' => 'göreş tutýan adamlar: orta aç
💋‍👩🏾' => 'posa: zenan, zenan, goýy deri reňki, orta goýy deri reňki', '👩🏿‍❤‍💋‍👩🏿' => 'posa: zenan, zenan, goýy deri reňki', '🧑🏻‍🫯‍🧑🏼' => 'göreş tutýan adamlar: açyk deri reňki, orta açyk deri reňki', '🧑🏻‍🫯‍🧑🏽' => 'gör
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-tk.php", "language": "php", "file_size": 215122, "cut_index": 7068, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Semaphore\Tests; use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\TestCase; use Symfony\Component\Semaphore\Exception\SemaphoreAcquiringException; use Symfony\Component\Semaphore\Exception\SemaphoreExpiredException; use Symfony\Component\Semaph...
re = $this->createMock(PersistingStoreInterface::class); $semaphore = new Semaphore($key, $store); $store ->expects($this->once()) ->method('save') ->with($key, 300.0) ; $this->assertTru
thor Jérémy Derussé <jeremy@derusse.com> * @author Grégoire Pineau <lyrixx@lyrixx.info> */ class SemaphoreTest extends TestCase { public function testAcquireReturnsTrue() { $key = new Key('key', 1); $sto
{ "filepath": "src/Symfony/Component/Semaphore/Tests/SemaphoreTest.php", "language": "php", "file_size": 7888, "cut_index": 716, "middle_length": 229 }
presents a string of Unicode grapheme clusters encoded as UTF-8. * * A letter followed by combining characters (accents typically) form what Unicode defines * as a grapheme cluster: a character as humans mean it in written texts. This class knows * about the concept and won't split a letter apart from its combining...
ic function __construct(string $string = '') { if ('' === $string || normalizer_is_normalized($this->string = $string)) { return; } if (false === $string = normalizer_normalize($string)) { throw new Inva
* * @see https://unicode.org/reports/tr15/ * * @author Nicolas Grekas <p@tchwork.com> * @author Hugo Hamon <hugohamon@neuf.fr> * * @throws ExceptionInterface */ class UnicodeString extends AbstractUnicodeString { publ
{ "filepath": "src/Symfony/Component/String/UnicodeString.php", "language": "php", "file_size": 13952, "cut_index": 921, "middle_length": 229 }
кіри', '👩🏽‍❤‍💋‍👨🏿' => 'чоловік і жінка, що цілуються: жінка, чоловік, помірний тон шкіри і темний тон шкіри', '👩🏾‍❤‍💋‍👨🏻' => 'чоловік і жінка, що цілуються: жінка, чоловік, помірно темний тон шкіри і світлий тон шкіри', '👩🏾‍❤‍💋‍👨🏼' => 'чоловік і жінка, що цілуються: жінка, чоловік, помірно те...
емний тон шкіри і світлий тон шкіри', '👩🏿‍❤‍💋‍👨🏼' => 'чоловік і жінка, що цілуються: жінка, чоловік, темний тон шкіри і помірно світлий тон шкіри', '👩🏿‍❤‍💋‍👨🏽' => 'чоловік і жінка, що цілуються: жінка, чоловік, темний тон шкіри і помірний тон шкіри
ся: жінка, чоловік і помірно темний тон шкіри', '👩🏾‍❤‍💋‍👨🏿' => 'чоловік і жінка, що цілуються: жінка, чоловік, помірно темний тон шкіри і темний тон шкіри', '👩🏿‍❤‍💋‍👨🏻' => 'чоловік і жінка, що цілуються: жінка, чоловік, т
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-uk.php", "language": "php", "file_size": 332154, "cut_index": 7068, "middle_length": 229 }
ri', '👩🏿‍❤‍💋‍👩🏻' => 'bo‘sa olish: ayol ayol 6-teri turi 1–2-teri turi', '👩🏿‍❤‍💋‍👩🏼' => 'bo‘sa olish: ayol ayol 6-teri turi 3-teri turi', '👩🏿‍❤‍💋‍👩🏽' => 'bo‘sa olish: ayol ayol 6-teri turi 4-teri turi', '👩🏿‍❤‍💋‍👩🏾' => 'bo‘sa olish: ayol ayol 6-teri turi 5-teri turi', '👩🏿‍❤‍💋‍👩...
5-teri turi', '🧑🏼‍🫯‍🧑🏿' => 'kurashchilar: 3-teri turi 6-teri turi', '🧑🏽‍🫯‍🧑🏻' => 'kurashchilar: 4-teri turi 1–2-teri turi', '🧑🏽‍🫯‍🧑🏼' => 'kurashchilar: 4-teri turi 3-teri turi', '🧑🏽‍🫯‍🧑🏾' => 'kurashchilar: 4-teri turi 5-teri turi', '🧑🏽
turi', '🧑🏻‍🫯‍🧑🏿' => 'kurashchilar: 1–2-teri turi 6-teri turi', '🧑🏼‍🫯‍🧑🏻' => 'kurashchilar: 3-teri turi 1–2-teri turi', '🧑🏼‍🫯‍🧑🏽' => 'kurashchilar: 3-teri turi 4-teri turi', '🧑🏼‍🫯‍🧑🏾' => 'kurashchilar: 3-teri turi
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-uz.php", "language": "php", "file_size": 199185, "cut_index": 7068, "middle_length": 229 }
màu da trung bình', '👩🏽‍❤‍💋‍👩🏾' => 'nụ hôn: phụ nữ, phụ nữ, màu da trung bình, màu da tối trung bình', '👩🏽‍❤‍💋‍👩🏿' => 'nụ hôn: phụ nữ, phụ nữ, màu da trung bình, màu da tối', '👩🏾‍❤‍💋‍👩🏻' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối trung bình, màu da sáng', '👩🏾‍❤‍💋‍👩🏼' => 'nụ hôn: phụ nữ, ...
'👩🏿‍❤‍💋‍👩🏽' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối, màu da trung bình', '👩🏿‍❤‍💋‍👩🏾' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối, màu da tối trung bình', '👩🏿‍❤‍💋‍👩🏿' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối', '🧑🏻‍🫯‍🧑🏼' => 'người chơi vật: màu da s
'👩🏾‍❤‍💋‍👩🏿' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối trung bình, màu da tối', '👩🏿‍❤‍💋‍👩🏻' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối, màu da sáng', '👩🏿‍❤‍💋‍👩🏼' => 'nụ hôn: phụ nữ, phụ nữ, màu da tối, màu da sáng trung bình',
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-vi.php", "language": "php", "file_size": 239129, "cut_index": 7068, "middle_length": 229 }
'👩🏽‍❤‍💋‍👨🏿' => 'phuza: ibhinqa, indoda, ithoni yesikhumba esiphakathi, ithoni yesikhumba emnyama', '👩🏾‍❤‍💋‍👨🏻' => 'phuza: ibhinqa, indoda, ithoni yesikhumba esiphakathi mnyama, ithoni yesikhumba esikhanyayo', '👩🏾‍❤‍💋‍👨🏼' => 'phuza: ibhinqa, indoda, ithoni yesikhumba esiphakathi mnyama, ithoni...
anyayo', '👩🏿‍❤‍💋‍👨🏼' => 'phuza: ibhinqa, indoda, ithoni yesikhumba emnyama, ithoni yesikhumba esikhanyayo phakathi', '👩🏿‍❤‍💋‍👨🏽' => 'phuza: ibhinqa, indoda, ithoni yesikhumba emnyama, ithoni yesikhumba esiphakathi', '👩🏿‍❤‍💋‍👨🏾' => 'phuza: ibhin
mba esiphakathi mnyama', '👩🏾‍❤‍💋‍👨🏿' => 'phuza: ibhinqa, indoda, ithoni yesikhumba esiphakathi mnyama, ithoni yesikhumba emnyama', '👩🏿‍❤‍💋‍👨🏻' => 'phuza: ibhinqa, indoda, ithoni yesikhumba emnyama, ithoni yesikhumba esikh
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-xh.php", "language": "php", "file_size": 191852, "cut_index": 7068, "middle_length": 229 }
ẹ̀', '👩🏿‍❤‍💋‍👩🏽' => 'Ifẹnuko: Obìnrin, Obìnrin, adúláwọ̀, amọ́láwọ̀ díẹ̀', '👩🏿‍❤‍💋‍👩🏾' => 'Ifẹnuko: Obìnrin, Obìnrin, adúláwọ̀, adúláwọ̀ díẹ̀', '👩🏿‍❤‍💋‍👩🏿' => 'Ifẹnuko: Obìnrin, Obìnrin, adúláwọ̀', '🧑🏻‍🫯‍🧑🏼' => 'Awọn Onigidigbo: amọ́lára àtiamọ́lára díẹ̀', '🧑🏻‍🫯‍🧑🏽' => 'Awọn...
ọn Onigidigbo: amọ́láwọ̀ díẹ̀ àtiamọ́lára', '🧑🏽‍🫯‍🧑🏼' => 'Awọn Onigidigbo: amọ́láwọ̀ díẹ̀ àtiamọ́lára díẹ̀', '🧑🏽‍🫯‍🧑🏾' => 'Awọn Onigidigbo: amọ́láwọ̀ díẹ̀ àtiadúláwọ̀ díẹ̀', '🧑🏽‍🫯‍🧑🏿' => 'Awọn Onigidigbo: amọ́láwọ̀ díẹ̀ àtiadúláwọ̀', '🧑🏾‍🫯‍
ọ́lára', '🧑🏼‍🫯‍🧑🏽' => 'Awọn Onigidigbo: amọ́lára díẹ̀ àtiamọ́láwọ̀ díẹ̀', '🧑🏼‍🫯‍🧑🏾' => 'Awọn Onigidigbo: amọ́lára díẹ̀ àtiadúláwọ̀ díẹ̀', '🧑🏼‍🫯‍🧑🏿' => 'Awọn Onigidigbo: amọ́lára díẹ̀ àtiadúláwọ̀', '🧑🏽‍🫯‍🧑🏻' => 'Aw
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-yo.php", "language": "php", "file_size": 242937, "cut_index": 7068, "middle_length": 229 }
=> '吻: 女人 女人 中肤色 中深肤色', '👩🏽‍❤‍💋‍👩🏿' => '吻: 女人 女人 中肤色 深肤色', '👩🏾‍❤‍💋‍👩🏻' => '吻: 女人 女人 中深肤色 浅肤色', '👩🏾‍❤‍💋‍👩🏼' => '吻: 女人 女人 中深肤色 中浅肤色', '👩🏾‍❤‍💋‍👩🏽' => '吻: 女人 女人 中深肤色 中肤色', '👩🏾‍❤‍💋‍👩🏾' => '吻: 女人 女人 中深肤色', '👩🏾‍❤‍💋‍👩🏿' => '吻: 女人 女人 中深肤色 深肤色', '👩🏿‍❤‍💋‍👩🏻' => '吻: 女人...
‍🧑🏻' => '摔交嘅人: 中肤色 浅肤色', '🧑🏽‍🫯‍🧑🏼' => '摔交嘅人: 中肤色 中浅肤色', '🧑🏽‍🫯‍🧑🏾' => '摔交嘅人: 中肤色 中深肤色', '🧑🏽‍🫯‍🧑🏿' => '摔交嘅人: 中肤色 深肤色', '🧑🏾‍🫯‍🧑🏻' => '摔交嘅人: 中深肤色 浅肤色', '🧑🏾‍🫯‍🧑🏼' => '摔交嘅人: 中深肤色 中浅肤色', '🧑🏾‍🫯‍🧑🏽' => '摔交嘅人: 中深肤色 中肤色', '🧑🏾‍🫯‍🧑🏿' => '摔交嘅
浅肤色 中肤色', '🧑🏻‍🫯‍🧑🏾' => '摔交嘅人: 浅肤色 中深肤色', '🧑🏻‍🫯‍🧑🏿' => '摔交嘅人: 浅肤色 深肤色', '🧑🏼‍🫯‍🧑🏻' => '摔交嘅人: 中浅肤色 浅肤色', '🧑🏼‍🫯‍🧑🏽' => '摔交嘅人: 中浅肤色 中肤色', '🧑🏼‍🫯‍🧑🏾' => '摔交嘅人: 中浅肤色 中深肤色', '🧑🏼‍🫯‍🧑🏿' => '摔交嘅人: 中浅肤色 深肤色', '🧑🏽‍🫯
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-yue_hans.php", "language": "php", "file_size": 178464, "cut_index": 3790, "middle_length": 229 }
🏼' => '親:女人 女人 褐皮膚 黃皮膚', '👩🏾‍❤‍💋‍👩🏽' => '親:女人 女人 褐皮膚 淺褐皮膚', '👩🏾‍❤‍💋‍👩🏾' => '親:女人 女人 褐皮膚', '👩🏾‍❤‍💋‍👩🏿' => '親:女人 女人 褐皮膚 黑皮膚', '👩🏿‍❤‍💋‍👩🏻' => '親:女人 女人 黑皮膚 白皮膚', '👩🏿‍❤‍💋‍👩🏼' => '親:女人 女人 黑皮膚 黃皮膚', '👩🏿‍❤‍💋‍👩🏽' => '親:女人 女人 黑皮膚 淺褐皮膚', '👩🏿‍❤‍💋‍👩🏾' => '親:女人 女人 黑皮膚 褐...
膚', '🧑🏾‍🫯‍🧑🏼' => '摔角手:褐皮膚 黃皮膚', '🧑🏾‍🫯‍🧑🏽' => '摔角手:褐皮膚 淺褐皮膚', '🧑🏾‍🫯‍🧑🏿' => '摔角手:褐皮膚 黑皮膚', '🧑🏿‍🫯‍🧑🏻' => '摔角手:黑皮膚 白皮膚', '🧑🏿‍🫯‍🧑🏼' => '摔角手:黑皮膚 黃皮膚', '🧑🏿‍🫯‍🧑🏽' => '摔角手:黑皮膚 淺褐皮膚', '🧑🏿‍🫯‍🧑🏾' => '摔角手:黑皮膚 褐皮膚', '🧑🏻‍❤‍🧑🏼' => '相愛:大人 大人
皮膚', '🧑🏼‍🫯‍🧑🏾' => '摔角手:黃皮膚 褐皮膚', '🧑🏼‍🫯‍🧑🏿' => '摔角手:黃皮膚 黑皮膚', '🧑🏽‍🫯‍🧑🏻' => '摔角手:淺褐皮膚 白皮膚', '🧑🏽‍🫯‍🧑🏼' => '摔角手:淺褐皮膚 黃皮膚', '🧑🏽‍🫯‍🧑🏾' => '摔角手:淺褐皮膚 褐皮膚', '🧑🏽‍🫯‍🧑🏿' => '摔角手:淺褐皮膚 黑皮膚', '🧑🏾‍🫯‍🧑🏻' => '摔角手:褐皮膚 白皮
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-zh_hant.php", "language": "php", "file_size": 171440, "cut_index": 3790, "middle_length": 229 }
akela: uhlobo-3, uhlobo-1-2', '🧑🏼‍🫯‍🧑🏽' => 'abashayi-sibhakela: uhlobo-3, uhlobo-4', '🧑🏼‍🫯‍🧑🏾' => 'abashayi-sibhakela: uhlobo-3, uhlobo-5', '🧑🏼‍🫯‍🧑🏿' => 'abashayi-sibhakela: uhlobo-3, uhlobo-6', '🧑🏽‍🫯‍🧑🏻' => 'abashayi-sibhakela: uhlobo-4, uhlobo-1-2', '🧑🏽‍🫯‍🧑🏼' => 'abashayi-...
', '🧑🏿‍🫯‍🧑🏼' => 'abashayi-sibhakela: uhlobo-6, uhlobo-3', '🧑🏿‍🫯‍🧑🏽' => 'abashayi-sibhakela: uhlobo-6, uhlobo-4', '🧑🏿‍🫯‍🧑🏾' => 'abashayi-sibhakela: uhlobo-6, uhlobo-5', '🧑🏻‍❤‍🧑🏼' => 'izithandani ezinenhliziyo: mdala, mdala, uhlobo-1-2, uhlob
🏾‍🫯‍🧑🏼' => 'abashayi-sibhakela: uhlobo-5, uhlobo-3', '🧑🏾‍🫯‍🧑🏽' => 'abashayi-sibhakela: uhlobo-5, uhlobo-4', '🧑🏾‍🫯‍🧑🏿' => 'abashayi-sibhakela: uhlobo-5, uhlobo-6', '🧑🏿‍🫯‍🧑🏻' => 'abashayi-sibhakela: uhlobo-6, uhlobo-1-2
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-zu.php", "language": "php", "file_size": 192395, "cut_index": 7068, "middle_length": 229 }
_flags:' => '🎌', ':crown:' => '👑', ':crutch:' => '🩼', ':cry:' => '😢', ':crying_cat_face:' => '😿', ':crystal_ball:' => '🔮', ':cucumber:' => '🥒', ':cup_with_straw:' => '🥤', ':cupcake:' => '🧁', ':cupid:' => '💘', ':curling_stone:' => '🥌', ':curly_hair:' => '🦱', ':...
nd_shape_with_a_dot_inside:' => '💠', ':disappointed:' => '😞', ':disappointed_relieved:' => '😥', ':disguised_face:' => '🥸', ':diving_mask:' => '🤿', ':diya_lamp:' => '🪔', ':dizzy:' => '💫', ':dizzy_face:' => '😵', ':dna:' => '🧬'
':dancers:' => '👯', ':dango:' => '🍡', ':dart:' => '🎯', ':dash:' => '💨', ':date:' => '📅', ':deaf_person:' => '🧏', ':deciduous_tree:' => '🌳', ':deer:' => '🦌', ':department_store:' => '🏬', ':diamo
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/gitlab-emoji.php", "language": "php", "file_size": 183161, "cut_index": 7068, "middle_length": 229 }
ی درمیانی -ہلکی رنگت، اور جلد کی سیاہ رنگت', '👩🏽‍❤‍💋‍👩🏻' => 'بوسہ: عورت، عورت، جلد کی درمیانی رنگت، اور جلد کی ہلکی رنگت', '👩🏽‍❤‍💋‍👩🏼' => 'بوسہ: عورت، عورت، جلد کی درمیانی رنگت، اور جلد کی درمیانی -ہلکی رنگت', '👩🏽‍❤‍💋‍👩🏽' => 'بوسہ: عورت، عورت، اور جلد کی درمیانی رنگت', '👩🏽‍❤‍💋‍👩🏾' =>...
' => 'بوسہ: عورت، عورت، اور جلد کی درمیانی سیاہ رنگت', '👩🏾‍❤‍💋‍👩🏿' => 'بوسہ: عورت، عورت، جلد کی درمیانی سیاہ رنگت، اور جلد کی سیاہ رنگت', '👩🏿‍❤‍💋‍👩🏻' => 'بوسہ: عورت، عورت، جلد کی سیاہ رنگت، اور جلد کی ہلکی رنگت', '👩🏿‍❤‍💋‍👩🏼' => 'بوسہ: عورت، عور
رنگت، اور جلد کی ہلکی رنگت', '👩🏾‍❤‍💋‍👩🏼' => 'بوسہ: عورت، عورت، جلد کی درمیانی سیاہ رنگت، اور جلد کی درمیانی -ہلکی رنگت', '👩🏾‍❤‍💋‍👩🏽' => 'بوسہ: عورت، عورت، جلد کی درمیانی سیاہ رنگت، اور جلد کی درمیانی رنگت', '👩🏾‍❤‍💋‍👩🏾
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-ur.php", "language": "php", "file_size": 302978, "cut_index": 7068, "middle_length": 229 }
eereer, xeesaayu der bu xawa ñuul', '👩🏼‍❤‍💋‍👩🏿' => 'fóon: jigéen, jigéen, xeesaayu der bu xeereer, xeesaayu der bu ñuul', '👩🏽‍❤‍💋‍👩🏻' => 'fóon: jigéen, jigéen, xeesaayu der bu yam, xeesaayu der bu woyof', '👩🏽‍❤‍💋‍👩🏼' => 'fóon: jigéen, jigéen, xeesaayu der bu yam, xeesaayu der bu xeereer', ...
💋‍👩🏽' => 'fóon: jigéen, jigéen, xeesaayu der bu xawa ñuul, xeesaayu der bu yam', '👩🏾‍❤‍💋‍👩🏾' => 'fóon: jigéen, jigéen, xeesaayu der bu xawa ñuul', '👩🏾‍❤‍💋‍👩🏿' => 'fóon: jigéen, jigéen, xeesaayu der bu xawa ñuul, xeesaayu der bu ñuul', '👩🏿‍❤‍💋‍👩
bu yam, xeesaayu der bu ñuul', '👩🏾‍❤‍💋‍👩🏻' => 'fóon: jigéen, jigéen, xeesaayu der bu xawa ñuul, xeesaayu der bu woyof', '👩🏾‍❤‍💋‍👩🏼' => 'fóon: jigéen, jigéen, xeesaayu der bu xawa ñuul, xeesaayu der bu xeereer', '👩🏾‍❤‍
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-wo.php", "language": "php", "file_size": 165025, "cut_index": 7068, "middle_length": 229 }
=> '吻: 女人 女人 中膚色 中深膚色', '👩🏽‍❤‍💋‍👩🏿' => '吻: 女人 女人 中膚色 深膚色', '👩🏾‍❤‍💋‍👩🏻' => '吻: 女人 女人 中深膚色 淺膚色', '👩🏾‍❤‍💋‍👩🏼' => '吻: 女人 女人 中深膚色 中淺膚色', '👩🏾‍❤‍💋‍👩🏽' => '吻: 女人 女人 中深膚色 中膚色', '👩🏾‍❤‍💋‍👩🏾' => '吻: 女人 女人 中深膚色', '👩🏾‍❤‍💋‍👩🏿' => '吻: 女人 女人 中深膚色 深膚色', '👩🏿‍❤‍💋‍👩🏻' => '吻: 女人...
‍🧑🏻' => '摔跤嘅人: 中膚色 淺膚色', '🧑🏽‍🫯‍🧑🏼' => '摔跤嘅人: 中膚色 中淺膚色', '🧑🏽‍🫯‍🧑🏾' => '摔跤嘅人: 中膚色 中深膚色', '🧑🏽‍🫯‍🧑🏿' => '摔跤嘅人: 中膚色 深膚色', '🧑🏾‍🫯‍🧑🏻' => '摔跤嘅人: 中深膚色 淺膚色', '🧑🏾‍🫯‍🧑🏼' => '摔跤嘅人: 中深膚色 中淺膚色', '🧑🏾‍🫯‍🧑🏽' => '摔跤嘅人: 中深膚色 中膚色', '🧑🏾‍🫯‍🧑🏿' => '摔跤嘅
淺膚色 中膚色', '🧑🏻‍🫯‍🧑🏾' => '摔跤嘅人: 淺膚色 中深膚色', '🧑🏻‍🫯‍🧑🏿' => '摔跤嘅人: 淺膚色 深膚色', '🧑🏼‍🫯‍🧑🏻' => '摔跤嘅人: 中淺膚色 淺膚色', '🧑🏼‍🫯‍🧑🏽' => '摔跤嘅人: 中淺膚色 中膚色', '🧑🏼‍🫯‍🧑🏾' => '摔跤嘅人: 中淺膚色 中深膚色', '🧑🏼‍🫯‍🧑🏿' => '摔跤嘅人: 中淺膚色 深膚色', '🧑🏽‍🫯
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-yue.php", "language": "php", "file_size": 178464, "cut_index": 3790, "middle_length": 229 }
膚', '👩🏻‍❤‍💋‍👩🏿' => '錫緊嘅一男一女:女人 女人 白皮膚 黑皮膚', '👩🏼‍❤‍💋‍👩🏻' => '錫緊嘅一男一女:女人 女人 黃皮膚 白皮膚', '👩🏼‍❤‍💋‍👩🏼' => '錫緊嘅一男一女:女人 女人 黃皮膚', '👩🏼‍❤‍💋‍👩🏽' => '錫緊嘅一男一女:女人 女人 黃皮膚 中等皮膚', '👩🏼‍❤‍💋‍👩🏾' => '錫緊嘅一男一女:女人 女人 黃皮膚 中深皮膚', '👩🏼‍❤‍💋‍👩🏿' => '錫緊嘅一男一女:女人 女人 黃皮膚 黑皮膚', '👩🏽‍❤‍💋‍👩🏻' => ...
女人 黑皮膚 白皮膚', '👩🏿‍❤‍💋‍👩🏼' => '錫緊嘅一男一女:女人 女人 黑皮膚 黃皮膚', '👩🏿‍❤‍💋‍👩🏽' => '錫緊嘅一男一女:女人 女人 黑皮膚 中等皮膚', '👩🏿‍❤‍💋‍👩🏾' => '錫緊嘅一男一女:女人 女人 黑皮膚 中深皮膚', '👩🏿‍❤‍💋‍👩🏿' => '錫緊嘅一男一女:女人 女人 黑皮膚', '🧑🏻‍🫯‍🧑🏼' => '摔角選手:白皮膚 黃皮膚', '🧑🏻‍🫯‍🧑🏽' => '摔角選手:白皮膚 中等皮膚',
男一女:女人 女人 中深皮膚 白皮膚', '👩🏾‍❤‍💋‍👩🏼' => '錫緊嘅一男一女:女人 女人 中深皮膚 黃皮膚', '👩🏾‍❤‍💋‍👩🏽' => '錫緊嘅一男一女:女人 女人 中深皮膚 中等皮膚', '👩🏾‍❤‍💋‍👩🏾' => '錫緊嘅一男一女:女人 女人 中深皮膚', '👩🏾‍❤‍💋‍👩🏿' => '錫緊嘅一男一女:女人 女人 中深皮膚 黑皮膚', '👩🏿‍❤‍💋‍👩🏻' => '錫緊嘅一男一女:女人
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-zh_hant_hk.php", "language": "php", "file_size": 181176, "cut_index": 3790, "middle_length": 229 }
'🐈‍⬛', ':blond_haired_man:' => '👱‍♂', ':blonde_woman:' => '👱‍♀', ':bowing_man:' => '🙇‍♂', ':bowing_woman:' => '🙇‍♀', ':woman_with_veil:' => '👰‍♀', ':climbing_man:' => '🧗‍♂', ':climbing_woman:' => '🧗‍♀', ':construction_worker_man:' => '👷‍♂', ':construction_worker_woman:' => '...
rker:' => '🧑‍🏭', ':fairy_man:' => '🧚‍♂', ':fairy_woman:' => '🧚‍♀', ':family_man_boy:' => '👨‍👦', ':family_man_girl:' => '👨‍👧', ':family_woman_boy:' => '👩‍👦', ':family_woman_girl:' => '👩‍👧', ':farmer:' => '🧑‍🌾', ':female_detec
woman:' => '🧏‍♀', ':elf_man:' => '🧝‍♂', ':elf_woman:' => '🧝‍♀', ':eye_speech_bubble:' => '👁‍🗨', ':face_exhaling:' => '😮‍💨', ':face_in_clouds:' => '😶‍🌫', ':face_with_spiral_eyes:' => '😵‍💫', ':factory_wo
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/github-emoji.php", "language": "php", "file_size": 59267, "cut_index": 2151, "middle_length": 229 }
rter\VarExporter; Builder::cleanTarget(); $emojisCodePoints = Builder::getEmojisCodePoints(); Builder::saveRules(Builder::buildRules($emojisCodePoints)); Builder::saveRules(Builder::buildStripRules($emojisCodePoints)); $emojiMaps = ['slack', 'github', 'gitlab']; foreach ($emojiMaps as $map) { $maps = Builder::{"...
$emojisCodePoints = []; foreach ($lines as $line) { $line = trim($line); if (!$line || str_starts_with($line, '#')) { continue; } // 263A FE0F ; fully-qualified # ☺️ E0.6 s
jisCodePoints, $emojiMaps)); final class Builder { private const TARGET_DIR = __DIR__.'/../data/'; public static function getEmojisCodePoints(): array { $lines = file(__DIR__.'/vendor/emoji-test.txt');
{ "filepath": "src/Symfony/Component/Emoji/Resources/bin/build.php", "language": "php", "file_size": 9237, "cut_index": 921, "middle_length": 229 }
: kadın kadın orta koyu cilt tonu orta cilt tonu', '👩🏾‍❤‍💋‍👩🏾' => 'öpücük: kadın kadın orta koyu cilt tonu', '👩🏾‍❤‍💋‍👩🏿' => 'öpücük: kadın kadın orta koyu cilt tonu koyu cilt tonu', '👩🏿‍❤‍💋‍👩🏻' => 'öpücük: kadın kadın koyu cilt tonu açık cilt tonu', '👩🏿‍❤‍💋‍👩🏼' => 'öpücük: kadın kadı...
yu cilt tonu', '🧑🏻‍🫯‍🧑🏿' => 'güreşen kişiler: açık cilt tonu koyu cilt tonu', '🧑🏼‍🫯‍🧑🏻' => 'güreşen kişiler: orta açık cilt tonu açık cilt tonu', '🧑🏼‍🫯‍🧑🏽' => 'güreşen kişiler: orta açık cilt tonu orta cilt tonu', '🧑🏼‍🫯‍🧑🏾' => 'güreşen kişi
ük: kadın kadın koyu cilt tonu', '🧑🏻‍🫯‍🧑🏼' => 'güreşen kişiler: açık cilt tonu orta açık cilt tonu', '🧑🏻‍🫯‍🧑🏽' => 'güreşen kişiler: açık cilt tonu orta cilt tonu', '🧑🏻‍🫯‍🧑🏾' => 'güreşen kişiler: açık cilt tonu orta ko
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-tr.php", "language": "php", "file_size": 209946, "cut_index": 7068, "middle_length": 229 }
色中等-浅肤色', '👩🏽‍❤‍💋‍👩🏽' => '亲吻: 女人女人中等肤色', '👩🏽‍❤‍💋‍👩🏾' => '亲吻: 女人女人中等肤色中等-深肤色', '👩🏽‍❤‍💋‍👩🏿' => '亲吻: 女人女人中等肤色较深肤色', '👩🏾‍❤‍💋‍👩🏻' => '亲吻: 女人女人中等-深肤色较浅肤色', '👩🏾‍❤‍💋‍👩🏼' => '亲吻: 女人女人中等-深肤色中等-浅肤色', '👩🏾‍❤‍💋‍👩🏽' => '亲吻: 女人女人中等-深肤色中等肤色', '👩🏾‍❤‍💋‍👩🏾' => '亲吻: 女人女人中等-深肤色'...
'🧑🏼‍🫯‍🧑🏾' => '摔跤选手: 中等-浅肤色中等-深肤色', '🧑🏼‍🫯‍🧑🏿' => '摔跤选手: 中等-浅肤色较深肤色', '🧑🏽‍🫯‍🧑🏻' => '摔跤选手: 中等肤色较浅肤色', '🧑🏽‍🫯‍🧑🏼' => '摔跤选手: 中等肤色中等-浅肤色', '🧑🏽‍🫯‍🧑🏾' => '摔跤选手: 中等肤色中等-深肤色', '🧑🏽‍🫯‍🧑🏿' => '摔跤选手: 中等肤色较深肤色', '🧑🏾‍🫯‍🧑🏻' => '摔跤选手: 中等-深肤色较浅肤色',
女人女人较深肤色', '🧑🏻‍🫯‍🧑🏼' => '摔跤选手: 较浅肤色中等-浅肤色', '🧑🏻‍🫯‍🧑🏽' => '摔跤选手: 较浅肤色中等肤色', '🧑🏻‍🫯‍🧑🏾' => '摔跤选手: 较浅肤色中等-深肤色', '🧑🏻‍🫯‍🧑🏿' => '摔跤选手: 较浅肤色较深肤色', '🧑🏼‍🫯‍🧑🏻' => '摔跤选手: 中等-浅肤色较浅肤色', '🧑🏼‍🫯‍🧑🏽' => '摔跤选手: 中等-浅肤色中等肤色',
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-zh.php", "language": "php", "file_size": 181761, "cut_index": 3790, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Emoji\Tests; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\RequiresPhpExtension; use PHPUnit\Framework\TestCase; use Symfony\Component\Emoji\EmojiTransliterator; use Symfony\Component\Finder\Finder; #[RequiresPhpExtension(...
'fr', 'un 😺, 🐈‍⬛, et a 🦁 vont au 🏞️', 'un chat qui sourit, chat noir, et a tête de lion vont au parc national️', ]; yield [ 'en', 'a 😺, 🐈‍⬛, and a 🦁 go to 🏞️... 😍 🎉 💛',
) { $tr = EmojiTransliterator::create('emoji-'.$locale); $this->assertSame($expected, $tr->transliterate($input)); } public static function provideTransliterateTests(): iterable { yield [
{ "filepath": "src/Symfony/Component/Emoji/Tests/EmojiTransliteratorTest.php", "language": "php", "file_size": 7109, "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\Semaphore; use Symfony\Component\Semaphore\Exception\SemaphoreAcquiringExcepti...
nction save(Key $key, float $ttlInSecond): void; /** * Removes a resource from the storage. * * @throws SemaphoreReleasingException */ public function delete(Key $key): void; /** * Returns whether or not the resource
nfo> * @author Jérémy Derussé <jeremy@derusse.com> */ interface PersistingStoreInterface { /** * Stores the resource if the semaphore is not full. * * @throws SemaphoreAcquiringException */ public fu
{ "filepath": "src/Symfony/Component/Semaphore/PersistingStoreInterface.php", "language": "php", "file_size": 1749, "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\Semaphore; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareTrait; /*...
$ttlInSecond Maximum expected semaphore duration in seconds * @param bool $autoRelease Whether to automatically release the semaphore or not when the semaphore instance is destroyed */ public function createSemaphore(string $resource, i
gmail.com> */ class SemaphoreFactory implements LoggerAwareInterface { use LoggerAwareTrait; public function __construct( private PersistingStoreInterface $store, ) { } /** * @param float|null
{ "filepath": "src/Symfony/Component/Semaphore/SemaphoreFactory.php", "language": "php", "file_size": 1830, "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\Semaphore\Serializer; use Symfony\Component\Semaphore\Exception\InvalidArgumentException; use Symfony\Component\Semaphore\Key; use Symfony\Component\Serial...
pe and type validation and converts construction * failures to {@see NotNormalizableValueException} so HTTP boundaries can * catch a single exception type. The opaque `state` map is forwarded to the * Key as-is; callers transferring keys across a trust
izes {@see Key} instances for transferring between processes. * * Trust boundary: the payload accepted by {@see denormalize()} is the * public-array shape documented on {@see Key::__serialize()}. The * normalizer performs sha
{ "filepath": "src/Symfony/Component/Semaphore/Serializer/SemaphoreKeyNormalizer.php", "language": "php", "file_size": 4106, "cut_index": 614, "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\Semaphore\Exception; use Symfony\Component\Semaphore\Key;...
untimeException implements ExceptionInterface { public function __construct(Key $key, string $message, ?\Throwable $previous = null) { parent::__construct(\sprintf('The semaphore "%s" has expired: %s.', $key, $message), 0, $previous); }
info> */ class SemaphoreExpiredException extends \R
{ "filepath": "src/Symfony/Component/Semaphore/Exception/SemaphoreExpiredException.php", "language": "php", "file_size": 831, "cut_index": 516, "middle_length": 52 }
buted with this source code. */ namespace Symfony\Component\Semaphore\Store; use Symfony\Component\Lock\Exception\LockReleasingException; use Symfony\Component\Lock\LockFactory; use Symfony\Component\Lock\LockInterface; use Symfony\Component\Semaphore\Exception\SemaphoreAcquiringException; use Symfony\Component\Sema...
} /** * Acquires `weight` slots through the underlying {@see LockFactory} and * stores the live {@see LockInterface} instances on the {@see Key}. * * Side effects on success: * - per-store state: an array of acquired {@see
gStoreInterface; /** * @author Alexander Schranz <alexander@sulu.io> */ final class LockStore implements PersistingStoreInterface { public function __construct( private readonly LockFactory $lockFactory, ) {
{ "filepath": "src/Symfony/Component/Semaphore/Store/LockStore.php", "language": "php", "file_size": 6491, "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\Semaphore\Store; use Relay\Cluster as RelayCluster; use Relay\Relay; use Symfony\Component\Cache\Adapter...
ed connection types: * - {@see LockFactory} -> {@see LockStore} * - \Redis, \RedisArray, \RedisCluster -> {@see RedisStore} * - {@see Relay}, {@see RelayCluster} (when the Relay extension is loaded) * - {@see \
StoreFactory create stores and connections. * * @author Jérémy Derussé <jeremy@derusse.com> */ class StoreFactory { /** * Creates a {@see PersistingStoreInterface} from a connection object or DSN. * * Accept
{ "filepath": "src/Symfony/Component/Semaphore/Store/StoreFactory.php", "language": "php", "file_size": 2930, "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\Semaphore\Tests; use PHPUnit\Framework\TestCase; use Psr\Log\NullLogger; use Symfony\Component\Semaphore...
->expects($this->exactly(2)) ->method('save') ->with($this->callback(static function ($key) use (&$keys) { $keys[] = $key; return true; })); $factory = new SemaphoreFacto
<lyrixx@lyrixx.info> */ class SemaphoreFactoryTest extends TestCase { public function testCreateSemaphore() { $store = $this->createMock(PersistingStoreInterface::class); $keys = []; $store
{ "filepath": "src/Symfony/Component/Semaphore/Tests/SemaphoreFactoryTest.php", "language": "php", "file_size": 2228, "cut_index": 563, "middle_length": 229 }
':man-lifting-weights:' => '🏋️‍♂️', ':woman-golfing:' => '🏌️‍♀️', ':man-golfing:' => '🏌️‍♂️', ':transgender_flag:' => '🏳️‍⚧️', ':eye-in-speech-bubble:' => '👁️‍🗨️', ':man-boy-boy:' => '👨‍👦‍👦', ':man-girl-boy:' => '👨‍👧‍👦', ':man-girl-girl:' => '👨‍👧‍👧', ':man-man-boy:' =>...
=> '🧑‍🧑‍🧒', ':family_adult_child_child:' => '🧑‍🧒‍🧒', ':woman-bouncing-ball:' => '⛹️‍♀️', ':man-bouncing-ball:' => '⛹️‍♂️', ':woman-running:' => '🏃‍♀️', ':man-running:' => '🏃‍♂️', ':person_running_facing_right:' => '🏃‍➡️', ':woma
'👩‍👧‍👧', ':woman-woman-boy:' => '👩‍👩‍👦', ':woman-woman-girl:' => '👩‍👩‍👧', ':female-detective:' => '🕵️‍♀️', ':male-detective:' => '🕵️‍♂️', ':people_holding_hands:' => '🧑‍🤝‍🧑', ':family_adult_adult_child:'
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/slack-emoji.php", "language": "php", "file_size": 64619, "cut_index": 2151, "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\Semaphore; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareTrait; use Symfony\Component\Semaphore\Exception\InvalidArgumentException; use Symfony\...
russe.com> */ final class Semaphore implements SemaphoreInterface, LoggerAwareInterface { use LoggerAwareTrait; private bool $dirty = false; public function __construct( private Key $key, private PersistingStoreInterface $sto
Symfony\Component\Semaphore\Exception\SemaphoreReleasingException; /** * Semaphore is the default implementation of the SemaphoreInterface. * * @author Grégoire Pineau <lyrixx@lyrixx.info> * @author Jérémy Derussé <jeremy@de
{ "filepath": "src/Symfony/Component/Semaphore/Semaphore.php", "language": "php", "file_size": 4692, "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\Semaphore\Exception; use Symfony\Component\Semaphore\Key; ...
*/ class SemaphoreAcquiringException extends \RuntimeException implements ExceptionInterface { public function __construct(Key $key, string $message) { parent::__construct(\sprintf('The semaphore "%s" could not be acquired: %s.', $key, $mes
lyrixx.info>
{ "filepath": "src/Symfony/Component/Semaphore/Exception/SemaphoreAcquiringException.php", "language": "php", "file_size": 807, "cut_index": 517, "middle_length": 14 }
ymfony\Component\Semaphore\Exception\SemaphoreAcquiringException; use Symfony\Component\Semaphore\Exception\SemaphoreExpiredException; use Symfony\Component\Semaphore\Exception\SemaphoreStorageException; use Symfony\Component\Semaphore\Key; use Symfony\Component\Semaphore\PersistingStoreInterface; /** * RedisStore is...
dis, ) { } public function save(Key $key, float $ttlInSecond): void { if (0 > $ttlInSecond) { throw new InvalidArgumentException("The TTL should be greater than 0, '$ttlInSecond' given."); } $script = '
mplements PersistingStoreInterface { private const NO_SCRIPT_ERROR_MESSAGE_PREFIX = 'NOSCRIPT'; public function __construct( private \Redis|Relay|RelayCluster|\RedisArray|\RedisCluster|\Predis\ClientInterface $re
{ "filepath": "src/Symfony/Component/Semaphore/Store/RedisStore.php", "language": "php", "file_size": 9764, "cut_index": 921, "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\Semaphore\Tests; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symf...
ore::class, base64_encode(random_bytes(32))); $copy = unserialize(serialize($key)); $this->assertSame(5, $copy->getLimit()); $this->assertSame(2, $copy->getWeight()); $this->assertEquals($key->getState(RedisStore::class), $
aphore\Store\RedisStore; /** * @author Paul Clegg <hello@clegginabox.co.uk> */ class KeyTest extends TestCase { public function testSerialize() { $key = new Key(__METHOD__, 5, 2); $key->setState(RedisSt
{ "filepath": "src/Symfony/Component/Semaphore/Tests/KeyTest.php", "language": "php", "file_size": 2225, "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\Semaphore\Exception; use Symfony\Component\Semaphore\Key; ...
lass SemaphoreReleasingException extends \RuntimeException implements ExceptionInterface { public function __construct(Key $key, string $message) { parent::__construct(\sprintf('The semaphore "%s" could not be released: %s.', $key, $message
xx.info> */ c
{ "filepath": "src/Symfony/Component/Semaphore/Exception/SemaphoreReleasingException.php", "language": "php", "file_size": 803, "cut_index": 517, "middle_length": 14 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Semaphore; use Symfony\Component\Semaphore\Exception\InvalidArgumentException; use Symfony\Component\Semaphore\Exception\UnserializableKeyException; /** ...
rivate int $limit, private int $weight = 1, ) { if (1 > $limit) { throw new InvalidArgumentException("The limit ($limit) should be greater than 0."); } if (1 > $weight) { throw new InvalidArgument
ate ?float $expiringTime = null; private array $state = []; private bool $serializable = true; private ?string $unserializableOwner = null; public function __construct( private string $resource, p
{ "filepath": "src/Symfony/Component/Semaphore/Key.php", "language": "php", "file_size": 4928, "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\Semaphore\Tests\Serializer; use PHPUnit\Framework\TestCase; use Symfony\Component\Semaphore\Key; use Sym...
ey->reduceLifetime(1); $normalizer = new SemaphoreKeyNormalizer(); $copy = $normalizer->denormalize($normalizer->normalize($key), Key::class); $this->assertSame(5, $copy->getLimit()); $this->assertSame(2, $copy->getWeight(
emaphoreKeyNormalizerTest extends TestCase { public function testNormalizeAndDenormalize() { $key = new Key(__METHOD__, 5, 2); $key->setState(RedisStore::class, base64_encode(random_bytes(32))); $k
{ "filepath": "src/Symfony/Component/Semaphore/Tests/Serializer/SemaphoreKeyNormalizerTest.php", "language": "php", "file_size": 2586, "cut_index": 563, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Semaphore\Tests\Store; use PHPUnit\Framework\TestCase; use Symfony\Component\Semaphore\Exception\SemaphoreAcquiringException; use Symfony\Component\Semaphore\Exception\SemaphoreExpiredException; use Symfony\Component\Semaphore\Key; use Symfony\Component\Sem...
tore->exists($key)); $store->save($key, 10); $this->assertTrue($store->exists($key)); $store->delete($key); $this->assertFalse($store->exists($key)); } public function testSaveWithDifferentResources() {
abstract protected function getStore(): PersistingStoreInterface; public function testSaveExistAndDelete() { $store = $this->getStore(); $key = new Key(__METHOD__, 1); $this->assertFalse($s
{ "filepath": "src/Symfony/Component/Semaphore/Tests/Store/AbstractStoreTestCase.php", "language": "php", "file_size": 6929, "cut_index": 716, "middle_length": 229 }
n Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Semaphore\Tests\Store; /** * @author Jérémy Derussé <jeremy@derusse.com> */ class PredisStoreTest extends AbstractRedisSt...
} catch (\Exception $e) { self::markTestSkipped($e->getMessage()); } } protected function getRedisConnection(): \Predis\Client { $redis = new \Predis\Client(array_combine(['host', 'port'], explode(':', getenv('REDI
try { $redis->connect();
{ "filepath": "src/Symfony/Component/Semaphore/Tests/Store/PredisStoreTest.php", "language": "php", "file_size": 979, "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\Semaphore\Tests\Store; use PHPUnit\Framework\Attribut...
plode(':', getenv('REDIS_HOST'))); } catch (\Exception $e) { self::markTestSkipped($e->getMessage()); } } protected function getRedisConnection(): \RedisArray { return new \RedisArray([getenv('REDIS_HOST')])
ic function setUpBeforeClass(): void { if (!class_exists(\RedisArray::class)) { self::markTestSkipped('The RedisArray class is required.'); } try { (new \Redis())->connect(...ex
{ "filepath": "src/Symfony/Component/Semaphore/Tests/Store/RedisArrayStoreTest.php", "language": "php", "file_size": 1010, "cut_index": 512, "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\Semaphore\Tests\Store; use PHPUnit\Framework\Attributes\RequiresPhpExtension; use Relay\Cluster as RelayCluster; #[Require...
uster class is required.'); } if (false === getenv('REDIS_CLUSTER_HOSTS')) { self::markTestSkipped('REDIS_CLUSTER_HOSTS env var is not defined.'); } } protected function getRedisConnection(): RelayCluster {
)) { self::markTestSkipped('The Relay\Cl
{ "filepath": "src/Symfony/Component/Semaphore/Tests/Store/RelayClusterStoreTest.php", "language": "php", "file_size": 983, "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\Semaphore\Tests\Store; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; us...
string $expectedStoreClass) { $store = StoreFactory::createStore($connection); $this->assertInstanceOf($expectedStoreClass, $store); } public static function validConnections(): \Generator { yield [new LockFactory(
y\Component\Semaphore\Store\StoreFactory; /** * @author Jérémy Derussé <jeremy@derusse.com> */ class StoreFactoryTest extends TestCase { #[DataProvider('validConnections')] public function testCreateStore($connection,
{ "filepath": "src/Symfony/Component/Semaphore/Tests/Store/StoreFactoryTest.php", "language": "php", "file_size": 2098, "cut_index": 563, "middle_length": 229 }
m> * * @throws ExceptionInterface */ abstract class AbstractUnicodeString extends AbstractString { public const NFC = \Normalizer::NFC; public const NFD = \Normalizer::NFD; public const NFKC = \Normalizer::NFKC; public const NFKD = \Normalizer::NFKD; // all ASCII letters sorted by typical freque...
\x24\x40\x60\x7F\x00\x01\x02\x03\x04\x05\x06\x07\x08\x0B\x0C\x0D\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F"; // the subset of folded case mappings that is not in lower case mappings private const FOLD_FROM = ['İ', 'µ'
9\x78\x29\x28\x4C\x39\x41\x53\x2F\x50\x22\x45\x6A\x4D\x49\x6B\x33\x3E\x35\x54\x3C\x44\x34\x7D\x42\x7B\x38\x46\x77\x52\x36\x37\x55\x47\x4E\x3B\x4A\x7A\x56\x23\x48\x4F\x57\x5F\x26\x21\x4B\x3F\x58\x51\x25\x59\x5C\x09\x5A\x2B\x7E\x5E
{ "filepath": "src/Symfony/Component/String/AbstractUnicodeString.php", "language": "php", "file_size": 29215, "cut_index": 1331, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\String; use Symfony\Component\String\Exception\ExceptionInterface; use Symfony\Component\String\Exception\InvalidArgumentException; /** * Represents a string of Unicode code points encoded as UTF-8. * * @author Nicolas Grekas <p@tchwork.com> * @author ...
{ $str = clone $this; $str->string .= 1 >= \count($suffix) ? ($suffix[0] ?? '') : implode('', $suffix); if (!preg_match('//u', $str->string)) { throw new InvalidArgumentException('Invalid UTF-8 string.'); }
('' !== $string && !preg_match('//u', $string)) { throw new InvalidArgumentException('Invalid UTF-8 string.'); } $this->string = $string; } public function append(string ...$suffix): static
{ "filepath": "src/Symfony/Component/String/CodePointString.php", "language": "php", "file_size": 7720, "cut_index": 716, "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\String; enum TruncateMode { /** * Will cut exactly at given length. * ...
: Lorem ipsum dolor sit amet * Output: Lorem ipsum */ case WordBefore; /** * Returns the string up to the complete word after or at the given length. * * Length: 14 * Source: Lorem ipsum dolor sit amet * Output:
ified length. * * Length: 14 * Source
{ "filepath": "src/Symfony/Component/String/TruncateMode.php", "language": "php", "file_size": 903, "cut_index": 547, "middle_length": 52 }
ɛ̀', '👩🏿‍❤‍💋‍👩🏽' => 'Ifɛnuko: Obìnrin, Obìnrin, adúláwɔ̀, amɔ́láwɔ̀ díɛ̀', '👩🏿‍❤‍💋‍👩🏾' => 'Ifɛnuko: Obìnrin, Obìnrin, adúláwɔ̀, adúláwɔ̀ díɛ̀', '👩🏿‍❤‍💋‍👩🏿' => 'Ifɛnuko: Obìnrin, Obìnrin, adúláwɔ̀', '🧑🏻‍🫯‍🧑🏼' => 'Awɔn Onigidigbo: amɔ́lára àtiamɔ́lára díɛ̀', '🧑🏻‍🫯‍🧑🏽' => 'Awɔn...
ɔn Onigidigbo: amɔ́láwɔ̀ díɛ̀ àtiamɔ́lára', '🧑🏽‍🫯‍🧑🏼' => 'Awɔn Onigidigbo: amɔ́láwɔ̀ díɛ̀ àtiamɔ́lára díɛ̀', '🧑🏽‍🫯‍🧑🏾' => 'Awɔn Onigidigbo: amɔ́láwɔ̀ díɛ̀ àtiadúláwɔ̀ díɛ̀', '🧑🏽‍🫯‍🧑🏿' => 'Awɔn Onigidigbo: amɔ́láwɔ̀ díɛ̀ àtiadúláwɔ̀', '🧑🏾‍🫯‍
ɔ́lára', '🧑🏼‍🫯‍🧑🏽' => 'Awɔn Onigidigbo: amɔ́lára díɛ̀ àtiamɔ́láwɔ̀ díɛ̀', '🧑🏼‍🫯‍🧑🏾' => 'Awɔn Onigidigbo: amɔ́lára díɛ̀ àtiadúláwɔ̀ díɛ̀', '🧑🏼‍🫯‍🧑🏿' => 'Awɔn Onigidigbo: amɔ́lára díɛ̀ àtiadúláwɔ̀', '🧑🏽‍🫯‍🧑🏻' => 'Aw
{ "filepath": "src/Symfony/Component/Emoji/Resources/data/emoji-yo_bj.php", "language": "php", "file_size": 231731, "cut_index": 7068, "middle_length": 229 }
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\Semaphore\Tests\Store; use Relay\Cluster as RelayCluster; use Relay\Relay; u...
tract protected function getRedisConnection(): \Redis|Relay|RelayCluster|\RedisArray|\RedisCluster|\Predis\ClientInterface; public function getStore(): PersistingStoreInterface { return new RedisStore($this->getRedisConnection()); } }
toreTestCase extends AbstractStoreTestCase { abs
{ "filepath": "src/Symfony/Component/Semaphore/Tests/Store/AbstractRedisStoreTestCase.php", "language": "php", "file_size": 846, "cut_index": 535, "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\Semaphore\Tests\Store; use PHPUnit\Framework\Attributes\RequiresPhpExtension; /** * @author Jérémy Derussé <jeremy@deruss...
Skipped('The RedisCluster class is required.'); } if (!getenv('REDIS_CLUSTER_HOSTS')) { self::markTestSkipped('REDIS_CLUSTER_HOSTS env var is not defined.'); } } protected function getRedisConnection(): \RedisCl
(\RedisCluster::class)) { self::markTest
{ "filepath": "src/Symfony/Component/Semaphore/Tests/Store/RedisClusterStoreTest.php", "language": "php", "file_size": 998, "cut_index": 582, "middle_length": 52 }
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\Semaphore\Tests\Store; use PHPUnit\Framework\Attributes\...
lic static function setUpBeforeClass(): void { try { new Relay(...explode(':', getenv('REDIS_HOST'))); } catch (\Relay\Exception $e) { self::markTestSkipped($e->getMessage()); } } protected funct
{ protected function setUp(): void { try { $this->getRedisConnection()->flushDB(); } catch (\Relay\Exception $e) { self::markTestSkipped($e->getMessage()); } } pub
{ "filepath": "src/Symfony/Component/Semaphore/Tests/Store/RelayStoreTest.php", "language": "php", "file_size": 1111, "cut_index": 515, "middle_length": 229 }
ntException; use Symfony\Component\String\Exception\RuntimeException; /** * Represents a binary-safe string of bytes. * * @author Nicolas Grekas <p@tchwork.com> * @author Hugo Hamon <hugohamon@neuf.fr> * * @throws ExceptionInterface */ class ByteString extends AbstractString { private const ALPHABET_ALPHANU...
the MIT license (https://github.com/hhvm/hsl/blob/master/LICENSE). * * Copyright (c) 2004-2020, Facebook, Inc. (https://www.facebook.com/) */ public static function fromRandom(int $length = 16, ?string $alphabet = null): self {
owing method was derived from code of the Hack Standard Library (v4.40 - 2020-05-03) * * https://github.com/hhvm/hsl/blob/80a42c02f036f72a42f0415e80d6b847f4bf62d5/src/random/private.php#L16 * * Code subject to
{ "filepath": "src/Symfony/Component/String/ByteString.php", "language": "php", "file_size": 13553, "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\Semaphore; use Symfony\Component\Semaphore\Exception\SemaphoreAcquiringExcepti...
has reached its limit. * * @throws SemaphoreAcquiringException If the semaphore cannot be acquired */ public function acquire(): bool; /** * Increase the duration of an acquired semaphore. * * @throws SemaphoreExpire
to manipulate the status of a semaphore. * * @author Jérémy Derussé <jeremy@derusse.com> * @author Grégoire Pineau <lyrixx@lyrixx.info> */ interface SemaphoreInterface { /** * Acquires the semaphore. If the semaphore
{ "filepath": "src/Symfony/Component/Semaphore/SemaphoreInterface.php", "language": "php", "file_size": 1571, "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\Semaphore\Tests\Store; use PHPUnit\Framework\Attribut...
} catch (\Exception $e) { self::markTestSkipped($e->getMessage()); } } protected function getRedisConnection(): \Redis { $redis = new \Redis(); $redis->connect(...explode(':', getenv('REDIS_HOST')));
on setUp(): void { $this->getRedisConnection()->flushDB(); } public static function setUpBeforeClass(): void { try { (new \Redis())->connect(...explode(':', getenv('REDIS_HOST')));
{ "filepath": "src/Symfony/Component/Semaphore/Tests/Store/RedisStoreTest.php", "language": "php", "file_size": 1030, "cut_index": 512, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\String; /** * A string whose value is computed lazily by a callback. * * @author Nicolas Grekas <p@tchwork.com> */ class LazyString implements \Stringa...
new \TypeError(\sprintf('Argument 1 passed to "%s()" must be a callable or a [Closure, method] lazy-callable, "%s" given.', __METHOD__, '['.implode(', ', array_map('get_debug_type', $callback)).']')); } $lazyString = new static();
fromCallable(callable|array $callback, mixed ...$arguments): static { if (\is_array($callback) && !\is_callable($callback) && !(($callback[0] ?? null) instanceof \Closure || 2 < \count($callback))) { throw
{ "filepath": "src/Symfony/Component/String/LazyString.php", "language": "php", "file_size": 4410, "cut_index": 614, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Semaphore\Tests\Store; use Symfony\Component\Lock\Exception\LockAcquiringException; use Symfony\Component\Lock\Exception\LockConflictedException; use Symfony\Component\Lock\Exception\LockReleasingException; use Symfony\Component\Lock\Key as LockKey; use Sym...
use Symfony\Component\Semaphore\Key; use Symfony\Component\Semaphore\PersistingStoreInterface; use Symfony\Component\Semaphore\Store\LockStore; class LockStoreTest extends AbstractStoreTestCase { public function getStore(): PersistingStoreInterface
ore\InMemoryStore; use Symfony\Component\Semaphore\Exception\SemaphoreAcquiringException; use Symfony\Component\Semaphore\Exception\SemaphoreExpiredException; use Symfony\Component\Semaphore\Exception\SemaphoreReleasingException;
{ "filepath": "src/Symfony/Component/Semaphore/Tests/Store/LockStoreTest.php", "language": "php", "file_size": 7538, "cut_index": 716, "middle_length": 229 }
hamon@neuf.fr> * * @throws ExceptionInterface */ abstract class AbstractString implements \Stringable, \JsonSerializable { public const PREG_PATTERN_ORDER = \PREG_PATTERN_ORDER; public const PREG_SET_ORDER = \PREG_SET_ORDER; public const PREG_OFFSET_CAPTURE = \PREG_OFFSET_CAPTURE; public const PREG_U...
); /** * Unwraps instances of AbstractString back to strings. * * @return string[]|array */ public static function unwrap(array $values): array { foreach ($values as $k => $v) { if ($v instanceof self) {
IT_DELIM_CAPTURE; public const PREG_SPLIT_OFFSET_CAPTURE = \PREG_SPLIT_OFFSET_CAPTURE; protected string $string = ''; protected ?bool $ignoreCase = false; abstract public function __construct(string $string = ''
{ "filepath": "src/Symfony/Component/String/AbstractString.php", "language": "php", "file_size": 19725, "cut_index": 1331, "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\String\Resources; use Symfony\Component\HttpClient\HttpClient; use Symfony\Component\String\Exception\RuntimeException; use Symfony\Component\VarExporter\V...
; $this->writeZeroWidthData(); } private function writeWideWidthData(): void { if (!preg_match('/^# EastAsianWidth-(\d+\.\d+\.\d+)\.txt/', $content = $this->client->request('GET', 'EastAsianWidth.txt')->getContent(), $matches)
truct( private string $outDir, ) { $this->client = HttpClient::createForBaseUri('https://www.unicode.org/Public/UNIDATA/'); } public function generate(): void { $this->writeWideWidthData()
{ "filepath": "src/Symfony/Component/String/Resources/WcswidthDataGenerator.php", "language": "php", "file_size": 3364, "cut_index": 614, "middle_length": 229 }
9200, ], [ 9203, 9203, ], [ 9725, 9726, ], [ 9748, 9749, ], [ 9776, 9783, ], [ 9800, 9811, ], [ 9855, 9855, ], [ 9866, 9871, ], [ 9875, ...
8, ], [ 9981, 9981, ], [ 9989, 9989, ], [ 9994, 9995, ], [ 10024, 10024, ], [ 10060, 10060, ], [ 10062, 10062,
9934, 9934, ], [ 9940, 9940, ], [ 9962, 9962, ], [ 9970, 9971, ], [ 9973, 9973, ], [ 9978, 997
{ "filepath": "src/Symfony/Component/String/Resources/data/wcswidth_table_wide.php", "language": "php", "file_size": 12805, "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. */ use Symfony\Component\String\Resources\WcswidthDataGenerator; if ('cli' !== \PHP_SAPI) { ...
if (!$root) { echo "Caused by\n"; } echo $cause::class.': '.$cause->getMessage()."\n"; echo "\n"; echo $cause->getFile().':'.$cause->getLine()."\n"; echo $cause->getTraceAsString()."\n"; $cau
throw new ErrorException($msg, 0, $type, $file, $line); }); set_exception_handler(static function (Throwable $exception): void { echo "\n"; $cause = $exception; $root = true; while (null !== $cause) {
{ "filepath": "src/Symfony/Component/String/Resources/bin/update-data.php", "language": "php", "file_size": 1445, "cut_index": 524, "middle_length": 229 }
$unicodeWidthTests[] = [2, '1️⃣']; } return array_merge( parent::provideWidth(), $unicodeWidthTests ); } public function testCreateFromStringWithInvalidUtf8Input() { $this->expectException(InvalidArgumentException::class); static...
tatic fn ($c) => str_replace('ö', 'OE', $c); $s = static::createFromString('Dieser Wert sollte größer oder gleich'); $this->assertSame('Dieser Wert sollte grOEsser oder gleich', (string) $s->ascii([$rule])); } #[DataProvider('pro
sollte grosser oder gleich', (string) $s->ascii()); $this->assertSame('Dieser Wert sollte groesser oder gleich', (string) $s->ascii(['de-ASCII'])); } public function testAsciiClosureRule() { $rule = s
{ "filepath": "src/Symfony/Component/String/Tests/AbstractUnicodeTestCase.php", "language": "php", "file_size": 23676, "cut_index": 1331, "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\String\Tests; use Symfony\Component\String\AbstractString; use Symfony\Component\String\ByteString; use ...
s $char) { self::assertNotNull((new ByteString('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'))->indexOf($char)); } } public function testFromRandomWithSpecificChars() { $random = ByteString::fromRando
g { return new ByteString($string); } public function testFromRandom() { $random = ByteString::fromRandom(32); self::assertSame(32, $random->length()); foreach ($random->chunk() a
{ "filepath": "src/Symfony/Component/String/Tests/ByteStringTest.php", "language": "php", "file_size": 2938, "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\String\Tests; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfony...
rtEquals($expected, s($input)); } public static function provideSStrings(): array { return [ [new UnicodeString(''), ''], [new UnicodeString(''), null], [new UnicodeString('foo'), 'foo'],
String\s; use function Symfony\Component\String\u; final class FunctionsTest extends TestCase { #[DataProvider('provideSStrings')] public function testS(AbstractString $expected, ?string $input) { $this->asse
{ "filepath": "src/Symfony/Component/String/Tests/FunctionsTest.php", "language": "php", "file_size": 2178, "cut_index": 563, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\String\Slugger; use Symfony\Component\Emoji\EmojiTransliterator; use Symfony\Component\String\AbstractUnicodeString; use Symfony\Component\String\UnicodeString; use Symfony\Contracts\Translation\LocaleAwareInterface; if (!interface_exists(LocaleAwareInterf...
_ID = [ 'am' => 'Amharic-Latin', 'ar' => 'Arabic-Latin', 'az' => 'Azerbaijani-Latin', 'be' => 'Belarusian-Latin', 'bg' => 'Bulgarian-Latin', 'bn' => 'Bengali-Latin', 'de' => 'de-ASCII', 'el' =
omposer require symfony/translation-contracts".'); } /** * @author Titouan Galopin <galopintitouan@gmail.com> */ class AsciiSlugger implements SluggerInterface, LocaleAwareInterface { private const LOCALE_TO_TRANSLITERATOR
{ "filepath": "src/Symfony/Component/String/Slugger/AsciiSlugger.php", "language": "php", "file_size": 7040, "cut_index": 716, "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\String; if (!\function_exists(u::class)) { function u(?string $str...
tion_exists(s::class)) { /** * @return UnicodeString|ByteString */ function s(?string $string = ''): AbstractString { $string ??= ''; return preg_match('//u', $string) ? new UnicodeString($string) : new ByteString($st
n new ByteString($string ?? ''); } } if (!\func
{ "filepath": "src/Symfony/Component/String/Resources/functions.php", "language": "php", "file_size": 852, "cut_index": 529, "middle_length": 52 }
मस्ते' === $string) { $this->markTestSkipped('Skipping due to issue ICU-21661.'); } $instance = static::createFromString($string); $instance = $form ? $instance->normalize($form) : $instance; $this->assertSame($expected, $instance->bytesAt($offset)); } public stati...
tance->indexOf($needle), $instance->containsAny($needle)); } #[DataProvider('provideIndexOfIgnoreCase')] public function testContainsAnyIgnoreCase(?int $result, string $string, $needle, int $offset) { $instance = static::createFrom
#[DataProvider('provideIndexOf')] public function testContainsAny(?int $result, string $string, $needle, int $offset) { $instance = static::createFromString($string); $this->assertSame(null !== $ins
{ "filepath": "src/Symfony/Component/String/Tests/AbstractAsciiTestCase.php", "language": "php", "file_size": 55845, "cut_index": 2151, "middle_length": 229 }
74, ], [ 1476, 1477, ], [ 1479, 1479, ], [ 1552, 1562, ], [ 1611, 1631, ], [ 1648, 1648, ], [ 1750, 1756, ], [ 1759, 1764, ], [ 1767, ...
], [ 2137, 2139, ], [ 2199, 2207, ], [ 2250, 2273, ], [ 2275, 2306, ], [ 2362, 2362, ], [ 2364, 2364, ],
2027, 2035, ], [ 2045, 2045, ], [ 2070, 2073, ], [ 2075, 2083, ], [ 2085, 2087, ], [ 2089, 2093,
{ "filepath": "src/Symfony/Component/String/Resources/data/wcswidth_table_zero.php", "language": "php", "file_size": 15453, "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\String\Tests; use Symfony\Component\String\AbstractString; use Sy...
cessed as a grapheme cluster [8, 'अनुच्छेद'], ] ); } public static function provideBytesAt(): array { return array_merge( parent::provideBytesAt(), [ [[0x61],
return new CodePointString($string); } public static function provideLength(): array { return array_merge( parent::provideLength(), [ // 8 instead of 5 if it were pro
{ "filepath": "src/Symfony/Component/String/Tests/CodePointStringTest.php", "language": "php", "file_size": 1536, "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\Transport; use Symfony\Component\Notifier\Exception\Inco...
ull, protected ?HttpClientInterface $client = null, ) { } public function supports(Dsn $dsn): bool { return \in_array($dsn->getScheme(), $this->getSupportedSchemes(), true); } /** * @return string[] */
com> * @author Fabien Potencier <fabien@symfony.com> */ abstract class AbstractTransportFactory implements TransportFactoryInterface { public function __construct( protected ?EventDispatcherInterface $dispatcher = n
{ "filepath": "src/Symfony/Component/Notifier/Transport/AbstractTransportFactory.php", "language": "php", "file_size": 1448, "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\Tests\Exception; use PHPUnit\Framework\TestCase; use S...
w MultipleExclusiveOptionsUsedException(['foo', 'bar'], ['foo', 'bar', 'baz']); $this->assertSame( 'Multiple exclusive options have been used "foo", "bar". Only one of "foo", "bar", "baz" can be used.', $exception->getMessa
exception = ne
{ "filepath": "src/Symfony/Component/Notifier/Tests/Exception/MultipleExclusiveOptionsUsedExceptionTest.php", "language": "php", "file_size": 816, "cut_index": 522, "middle_length": 14 }
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\Exception; /** * @author Yuriy Vilks <igrizzli@gmail.com> */ class MultipleExclusiveOptionsUsedException extends InvalidArgumentExceptio...
= \sprintf( 'Multiple exclusive options have been used "%s". Only one of "%s" can be used.', implode('", "', $usedExclusiveOptions), implode('", "', $exclusiveOptions) ); parent::__construct($message, 0
?\Throwable $previous = null) { $message
{ "filepath": "src/Symfony/Component/Notifier/Exception/MultipleExclusiveOptionsUsedException.php", "language": "php", "file_size": 936, "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\String\Tests; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\RequiresPhpExtension; use PHPUnit\Framework\TestCase; use Sym...
{ return [ ['Стойността трябва да бъде лъжа', 'bg', 'Stoinostta-tryabva-da-bude-luzha'], ['You & I', 'en', 'You-and-I'], ['symfony@symfony.com', 'en', 'symfony-at-symfony-com'], ['Dieser Wert sollt
ring, string $locale, string $expectedSlug) { $slugger = new AsciiSlugger($locale); $this->assertSame($expectedSlug, (string) $slugger->slug($string)); } public static function provideSlug(): array
{ "filepath": "src/Symfony/Component/String/Tests/SluggerTest.php", "language": "php", "file_size": 4254, "cut_index": 614, "middle_length": 229 }
String; class UnicodeStringTestToStringGadget { public static bool $fired = false; public function __toString(): string { self::$fired = true; return ''; } } class UnicodeStringTest extends AbstractUnicodeTestCase { public function testUnserializeRejectsObjectInTypedStringPropert...
odCallException.'); } catch (\BadMethodCallException $e) { } $this->assertFalse(UnicodeStringTestToStringGadget::$fired, '__toString gadget must not fire during unserialize'); } #[DataProvider('provideTrimNormalization')]
ngTestToStringGadget::class), UnicodeStringTestToStringGadget::class, ); UnicodeStringTestToStringGadget::$fired = false; try { unserialize($payload); $this->fail('Expected BadMeth
{ "filepath": "src/Symfony/Component/String/Tests/UnicodeStringTest.php", "language": "php", "file_size": 12101, "cut_index": 921, "middle_length": 229 }
EnglishInflector; class EnglishInflectorTest extends TestCase { public static function singularizeProvider() { // see http://english-zone.com/spelling/plurals.html // see http://www.scribd.com/doc/3271143/List-of-100-Irregular-Plural-Nouns-in-English return [ ['accesses', 'a...
['arches', ['arch', 'arche']], ['articles', 'article'], ['atlases', ['atlas', 'atlase', 'atlasis']], ['axes', ['ax', 'axe', 'axis']], ['babies', 'baby'], ['bacteria', 'bacterium'],
['analyses', ['analys', 'analyse', 'analysis']], ['ankles', 'ankle'], ['antennae', 'antenna'], ['antennas', 'antenna'], ['appendices', ['appendex', 'appendix', 'appendice']],
{ "filepath": "src/Symfony/Component/String/Tests/Inflector/EnglishInflectorTest.php", "language": "php", "file_size": 13553, "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\String\Tests\Inflector; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfony\Component\String\Inflector\SpanishInflec...
['cafés', 'café'], ['isrealís', 'isrealí'], ['burós', 'buró'], ['tisús', 'tisú'], // ending in -ión ['aviones', 'avión'], ['camiones', 'camión'], // ending in
'pera'], ['especies', 'especie'], ['álcalis', 'álcali'], ['códigos', 'código'], ['espíritus', 'espíritu'], // accented (RAE 3.2a, 3.2c) ['papás', 'papá'],
{ "filepath": "src/Symfony/Component/String/Tests/Inflector/SpanishInflectorTest.php", "language": "php", "file_size": 4264, "cut_index": 614, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\String\Inflector; /** * French inflector. * * This class does only inflect nouns; not adjectives nor composed words like "soixante-dix". */ final class FrenchInflector implements InflectorInterface { /** * A list of all rules for pluralise. ...
uralized with a "x" // Les mots finissant par "eau" prennent tous un "x" au pluriel ['/(eau)$/i', '\1x'], // Words finishing with "au" are pluralized with a "x" excepted "landau" // Les mots finissant par "au" prennent un "
d entry: replacement // Words finishing with "s", "x" or "z" are invariables // Les mots finissant par "s", "x" ou "z" sont invariables ['/(s|x|z)$/i', '\1'], // Words finishing with "eau" are pl
{ "filepath": "src/Symfony/Component/String/Inflector/FrenchInflector.php", "language": "php", "file_size": 5963, "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\String\Inflector; final class SpanishInflector implements InflectorInterface { /** * A list of all rules for pluralise. * * @see https:/...
) ['/(a|e|i|o|u|á|é|í|ó|ú)$/i', '\1s'], // Word ending in s or x and the previous letter is accented (RAE 3.2n) ['/ás$/i', 'ases'], ['/és$/i', 'eses'], ['/ís$/i', 'ises'], ['/ós$/i', 'oses'], ['/ús$/
*/ // First entry: regex // Second entry: replacement private const PLURALIZE_REGEXP = [ // Specials sí, no ['/(sí|no)$/i', '\1es'], // Words ending with vowel must use -s (RAE 3.2a, 3.2c
{ "filepath": "src/Symfony/Component/String/Inflector/SpanishInflector.php", "language": "php", "file_size": 3600, "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; use Symfony\Component\Messenger\MessageBusInterface; us...
t( private TransportInterface $transport, private ?MessageBusInterface $bus = null, private ?EventDispatcherInterface $dispatcher = null, ) { } public function __toString(): string { return 'chat'; }
nsport\TransportInterface; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; /** * @author Fabien Potencier <fabien@symfony.com> */ final class Chatter implements ChatterInterface { public function __construc
{ "filepath": "src/Symfony/Component/Notifier/Chatter.php", "language": "php", "file_size": 1449, "cut_index": 524, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\Notifier; use Symfony\Component\Notifier\Exception\UnsupportedSchemeException; use Symfony\Component\Notifier\Transport\Dsn; use Symfony\Component\Notifier\Transport\FailoverTransport; use Symfony\Component\Notifier\Transport\NullTransportFactory; use Symfo...
s Transport { private const FACTORY_CLASSES = [ Bridge\AllMySms\AllMySmsTransportFactory::class, Bridge\AmazonSns\AmazonSnsTransportFactory::class, Bridge\Bandwidth\BandwidthTransportFactory::class, Bridge\Bluesky\Bluesk
y\Component\Notifier\Transport\Transports; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Fabien Potencier <fabien@symfony.com> */ final clas
{ "filepath": "src/Symfony/Component/Notifier/Transport.php", "language": "php", "file_size": 8230, "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\Exception; use Symfony\Contracts\HttpClient\...
g') ?? ''; parent::__construct($message, $code, $previous); } public function getResponse(): ResponseInterface { return $this->response; } public function getDebug(): string { return $this->debug; } }
g = ''; public function __construct( string $message, private ResponseInterface $response, int $code = 0, ?\Throwable $previous = null, ) { $this->debug .= $response->getInfo('debu
{ "filepath": "src/Symfony/Component/Notifier/Exception/TransportException.php", "language": "php", "file_size": 997, "cut_index": 512, "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\DataCollector; use Symfony\Component\HttpFoundatio...
tificationLoggerListener $logger, ) { } public function collect(Request $request, Response $response, ?\Throwable $exception = null): void { $this->data['events'] = $this->logger->getEvents(); } public function getEvents()
ponent\Notifier\EventListener\NotificationLoggerListener; /** * @author Fabien Potencier <fabien@symfony.com> */ final class NotificationDataCollector extends DataCollector { public function __construct( private No
{ "filepath": "src/Symfony/Component/Notifier/DataCollector/NotificationDataCollector.php", "language": "php", "file_size": 1227, "cut_index": 518, "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\Exception; /** * @author Fabien Potencier <fabien@symfony.com> */ ...
if ($dsn) { $message = \sprintf('Invalid "%s" notifier DSN: %s', $dsn, $message); } parent::__construct($message, 0, $previous); } public function getOriginalDsn(): string { return $this->dsn; }
ull, ) {
{ "filepath": "src/Symfony/Component/Notifier/Exception/IncompleteDsnException.php", "language": "php", "file_size": 808, "cut_index": 536, "middle_length": 14 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\String\Tests; use PHPUnit\Framework\Attributes\RunInSeparateProcess; use PHPUnit\Framework\TestCase; use Symfony\Component\String\LazyString; class LazySt...
= LazyString::fromCallable(static fn () => []); $this->expectException(\TypeError::class); $this->expectExceptionMessageMatches('{^Return value of .*\{closure.*\}\(\) passed to '.preg_quote(LazyString::class).'::fromCallable\(\) must be of
}); $this->assertSame(0, $count); $this->assertSame('1', (string) $s); $this->assertSame(1, $count); } #[RunInSeparateProcess] public function testReturnTypeError() { $s
{ "filepath": "src/Symfony/Component/String/Tests/LazyStringTest.php", "language": "php", "file_size": 3747, "cut_index": 614, "middle_length": 229 }
signia (insigne) ['saingisni', 9, true, true, 'insigne'], ['aingisni', 8, true, true, 'insigne'], // passersby (passerby) ['ybsressap', 9, true, true, 'passerby'], // nodes (node) ['sedon', 5, true, true, 'node'], // bacteria (bacterium) ['airetcab', 8,...
// genera (genus) ['areneg', 6, true, true, 'genus'], // media (medium) ['aidem', 5, true, true, 'medium'], // memoranda (memorandum) ['adnaromem', 9, true, true, 'memorandum'], // phenomena (phenomenon)
a (criterion) ['airetirc', 8, true, true, 'criterion'], // curricula (curriculum) ['alucirruc', 9, true, true, 'curriculum'], // quora (quorum) ['arouq', 5, true, true, 'quorum'],
{ "filepath": "src/Symfony/Component/String/Inflector/EnglishInflector.php", "language": "php", "file_size": 18135, "cut_index": 1331, "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; use Psr\Container\ContainerInterface; use Symfony\Component\Notifier\Channel\ChannelInterface; use Symfony\Component\Notifier\Channel\ChannelPoli...
ifier implements NotifierInterface { private array $adminRecipients = []; /** * @param ChannelInterface[]|ContainerInterface $channels */ public function __construct( private array|ContainerInterface $channels, privat
nent\Notifier\Notification\Notification; use Symfony\Component\Notifier\Recipient\NoRecipient; use Symfony\Component\Notifier\Recipient\RecipientInterface; /** * @author Fabien Potencier <fabien@symfony.com> */ final class Not
{ "filepath": "src/Symfony/Component/Notifier/Notifier.php", "language": "php", "file_size": 4094, "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\Exception; use Symfony\Component\Notifier\Message\Messa...
$message = \sprintf( 'The "%s" transport only supports instances of "%s" (instance of "%s" given).', $transport, $supported, get_debug_type($given) ); parent::__construct($message); } }
g $supported, MessageInterface $given) {
{ "filepath": "src/Symfony/Component/Notifier/Exception/UnsupportedMessageTypeException.php", "language": "php", "file_size": 831, "cut_index": 523, "middle_length": 52 }
molodchick@gmail.com> */ class UnsupportedSchemeException extends LogicException { private const SCHEME_TO_PACKAGE_MAP = [ 'allmysms' => [ 'class' => Bridge\AllMySms\AllMySmsTransportFactory::class, 'package' => 'symfony/all-my-sms-notifier', ], 'bandwidth' => [ ...
otifier', ], 'chatwork' => [ 'class' => Bridge\Chatwork\ChatworkTransportFactory::class, 'package' => 'symfony/chatwork-notifier', ], 'clickatell' => [ 'class' => Bridge\Clickatell\Clickat
esky\BlueskyTransportFactory::class, 'package' => 'symfony/bluesky-notifier', ], 'brevo' => [ 'class' => Bridge\Brevo\BrevoTransportFactory::class, 'package' => 'symfony/brevo-n
{ "filepath": "src/Symfony/Component/Notifier/Exception/UnsupportedSchemeException.php", "language": "php", "file_size": 14537, "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\String\Tests\Slugger; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\RequiresPhpExtension; use PHPUnit\Framework\TestCase;...
rovideSlugTests(): iterable { yield ['', '']; yield ['foo', ' foo ']; yield ['foo-bar', 'foo bar']; yield ['foo-bar', 'foo@bar', '-']; yield ['foo-at-bar', 'foo@bar', '-', 'en']; yield ['e-a', 'é$!à'];
ring, string $separator = '-', ?string $locale = null) { $slugger = new AsciiSlugger(); $this->assertSame($expected, (string) $slugger->slug($string, $separator, $locale)); } public static function p
{ "filepath": "src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php", "language": "php", "file_size": 4319, "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\String\Inflector; interface InflectorInterface { /** ...
ay; /** * Returns the plural forms of a string. * * If the method can't determine the form with certainty, several possible plurals are returned. * * @return string[] */ public function pluralize(string $singular): ar
public function singularize(string $plural): arr
{ "filepath": "src/Symfony/Component/String/Inflector/InflectorInterface.php", "language": "php", "file_size": 835, "cut_index": 520, "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\Transport; use Symfony\Component\HttpClient\HttpClient; use Symfony\Component\Notifier\Event\Fa...
or Fabien Potencier <fabien@symfony.com> */ abstract class AbstractTransport implements TransportInterface { protected const HOST = 'localhost'; protected ?string $host = null; protected ?int $port = null; public function __construct(
\Component\Notifier\Message\MessageInterface; use Symfony\Component\Notifier\Message\SentMessage; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @auth
{ "filepath": "src/Symfony/Component/Notifier/Transport/AbstractTransport.php", "language": "php", "file_size": 2717, "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\String\Tests\Inflector; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfony\Component\String\Inflector\FrenchInflect...
['héros', 'héros'], ['nez', 'nez'], ['rictus', 'rictus'], ['sans', 'sans'], ['souris', 'souris'], ['tas', 'tas'], ['toux', 'toux'], // Les mots finissant en e
, // special characters ['œuf', 'œufs'], ['oeuf', 'oeufs'], // Les mots finissant par s, x, z sont invariables en nombre ['bois', 'bois'], ['fils', 'fils'],
{ "filepath": "src/Symfony/Component/String/Tests/Inflector/FrenchInflectorTest.php", "language": "php", "file_size": 5077, "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\Transport; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Exception\MissingRequiredOptionExcept...
ng $dsn) { $this->originalDsn = $dsn; if (false === $params = parse_url($dsn)) { throw new InvalidArgumentException('The notifier DSN is invalid.'); } if (!isset($params['scheme'])) { throw new
ivate ?string $user; private ?string $password; private ?int $port; private ?string $path; private array $options = []; private string $originalDsn; public function __construct(#[\SensitiveParameter] stri
{ "filepath": "src/Symfony/Component/Notifier/Transport/Dsn.php", "language": "php", "file_size": 3060, "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\Transport; use Symfony\Component\Notifier\Event\MessageE...
struct( private ?EventDispatcherInterface $dispatcher = null, ) { } public function send(MessageInterface $message): SentMessage { $message = new NullMessage($message); $sentMessage = new SentMessage($message, (stri
Notifier\Message\SentMessage; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; /** * @author Fabien Potencier <fabien@symfony.com> */ class NullTransport implements TransportInterface { public function __con
{ "filepath": "src/Symfony/Component/Notifier/Transport/NullTransport.php", "language": "php", "file_size": 1457, "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\Transport; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\RuntimeException; use Symfony\Compone...
\SplObjectStorage $deadTransports; private array $transports = []; private int $retryPeriod; private int $cursor = -1; /** * @param TransportInterface[] $transports */ public function __construct(array $transports, int $retr
using a round robin algorithm. * * @author Fabien Potencier <fabien@symfony.com> */ class RoundRobinTransport implements TransportInterface { /** * @var \SplObjectStorage<TransportInterface, float> */ private
{ "filepath": "src/Symfony/Component/Notifier/Transport/RoundRobinTransport.php", "language": "php", "file_size": 4141, "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\Transport; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Compo...
transports */ public function __construct(iterable $transports) { foreach ($transports as $name => $transport) { $this->transports[$name] = $transport; } } public function __toString(): string {
mfony.com> */ final class Transports implements TransportInterface { /** * @var array<string, TransportInterface> */ private array $transports = []; /** * @param iterable<string, TransportInterface> $
{ "filepath": "src/Symfony/Component/Notifier/Transport/Transports.php", "language": "php", "file_size": 2404, "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\Message; use Symfony\Component\Notifier\Notification\Notification; /...
ication): self { $message = new self($notification->getSubject()); $message->notification = $notification; return $message; } /** * @return $this */ public function subject(string $subject): static {
ion $notification = null; public function __construct( private string $subject, private ?MessageOptionsInterface $options = null, ) { } public static function fromNotification(Notification $notif
{ "filepath": "src/Symfony/Component/Notifier/Message/ChatMessage.php", "language": "php", "file_size": 1925, "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\Message; use Symfony\Bridge\Twig\Mime\NotificationEmail; use Symfony\Component\Mailer\Envelope; use Symfony\Component\Mime\Email; use Symfony\Comp...
ification $notification = null; public function __construct( private RawMessage $message, private ?Envelope $envelope = null, ) { } public static function fromNotification(Notification $notification, EmailRecipientInterfac
otification; use Symfony\Component\Notifier\Recipient\EmailRecipientInterface; /** * @author Fabien Potencier <fabien@symfony.com> */ class EmailMessage implements MessageInterface, FromNotificationInterface { private ?Not
{ "filepath": "src/Symfony/Component/Notifier/Message/EmailMessage.php", "language": "php", "file_size": 3458, "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\Message; use Symfony\Component\Notifier\Notification\Notification; /** * @author Tomas Norkūn...
on $notification): self { $message = new self($notification->getSubject(), $notification->getContent()); $message->notification = $notification; return $message; } public function getRecipientId(): ?string {
; public function __construct( private string $subject, private string $content, private ?MessageOptionsInterface $options = null, ) { } public static function fromNotification(Notificati
{ "filepath": "src/Symfony/Component/Notifier/Message/PushMessage.php", "language": "php", "file_size": 2080, "cut_index": 563, "middle_length": 229 }
ge. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Message; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Compone...
private string $from = '', private ?MessageOptionsInterface $options = null, ) { if ('' === $phone) { throw new InvalidArgumentException(\sprintf('"%s" needs a phone number, it cannot be empty.', __CLASS__));
sageInterface, FromNotificationInterface { private ?string $transport = null; private ?Notification $notification = null; public function __construct( private string $phone, private string $subject,
{ "filepath": "src/Symfony/Component/Notifier/Message/SmsMessage.php", "language": "php", "file_size": 2940, "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\EventListener; use Symfony\Component\EventDispatcher\Eve...
nts = new NotificationEvents(); } public function reset(): void { $this->events = new NotificationEvents(); } public function onNotification(MessageEvent $event): void { $this->events->add($event); } publi
Fabien Potencier <fabien@symfony.com> */ class NotificationLoggerListener implements EventSubscriberInterface, ResetInterface { private NotificationEvents $events; public function __construct() { $this->eve
{ "filepath": "src/Symfony/Component/Notifier/EventListener/NotificationLoggerListener.php", "language": "php", "file_size": 1254, "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\Tests; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Symfony...
usInterface $bus; protected function setUp(): void { $this->transport = $this->createMock(TransportInterface::class); $this->bus = $this->createMock(MessageBusInterface::class); } public function testSendWithoutBus() {
onent\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; class ChatterTest extends TestCase { private MockObject&TransportInterface $transport; private MockObject&MessageB
{ "filepath": "src/Symfony/Component/Notifier/Tests/ChatterTest.php", "language": "php", "file_size": 2102, "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\Tests; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Frame...
otected function setUp(): void { $this->transport = $this->createMock(TransportInterface::class); } public function testSendWithoutBus() { $message = new DummyMessage(); $sentMessage = new SentMessage($message, 'any
\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Texter; use Symfony\Component\Notifier\Transport\TransportInterface; class TexterTest extends TestCase { private MockObject&TransportInterface $transport; pr
{ "filepath": "src/Symfony/Component/Notifier/Tests/TexterTest.php", "language": "php", "file_size": 1935, "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; use Symfony\Component\Messenger\MessageBusInterface; us...
private TransportInterface $transport, private ?MessageBusInterface $bus = null, private ?EventDispatcherInterface $dispatcher = null, ) { } public function __toString(): string { return 'texter'; }
nsport\TransportInterface; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; /** * @author Fabien Potencier <fabien@symfony.com> */ final class Texter implements TexterInterface { public function __construct(
{ "filepath": "src/Symfony/Component/Notifier/Texter.php", "language": "php", "file_size": 1449, "cut_index": 524, "middle_length": 229 }